@spartan-ng/brain 1.5.0-beta.3 → 1.5.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,293 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { InjectionToken, Type, ExistingProvider } from '@angular/core';
3
+ import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
4
+
5
+ declare const DEFAULT_SCROLL_EDGE_THRESHOLD = 8;
6
+ declare const DEFAULT_SCROLL_PREVIOUS_ITEM_PEEK = 64;
7
+ declare const DEFAULT_SCROLL_MARGIN = 0;
8
+ declare const SCROLL_POSITION_EPSILON = 0.5;
9
+ declare const AUTOSCROLLING_CLEAR_DELAY = 180;
10
+ declare const USER_SCROLL_KEYS: Set<string>;
11
+ type BrnMessageScrollerMode = 'following-bottom' | 'free-scrolling' | 'anchored-to-message' | 'settling-jump';
12
+ type BrnMessageScrollerDefaultScrollPosition = 'start' | 'end' | 'last-anchor';
13
+ type BrnMessageScrollerButtonDirection = 'start' | 'end';
14
+ type BrnMessageScrollerScrollAlign = 'start' | 'center' | 'end' | 'nearest';
15
+ type BrnMessageScrollerScrollOptions = {
16
+ align?: BrnMessageScrollerScrollAlign;
17
+ behavior?: ScrollBehavior;
18
+ scrollMargin?: number;
19
+ };
20
+ type BrnMessageScrollerScrollable = {
21
+ start: boolean;
22
+ end: boolean;
23
+ };
24
+ type BrnMessageScrollerVisibilityState = {
25
+ currentAnchorId: string | null;
26
+ visibleMessageIds: string[];
27
+ };
28
+ type BrnMessageScrollerProviderProps = {
29
+ autoScroll?: boolean;
30
+ defaultScrollPosition?: BrnMessageScrollerDefaultScrollPosition;
31
+ scrollEdgeThreshold?: number;
32
+ scrollPreviousItemPeek?: number;
33
+ scrollMargin?: number;
34
+ };
35
+ type BrnMessageScrollerRegisterMessage = (messageId: string, element: HTMLElement | null, removedElement?: HTMLElement | null) => void;
36
+ declare const EMPTY_MESSAGE_SCROLLER_SCROLLABLE: BrnMessageScrollerScrollable;
37
+ declare const EMPTY_VISIBLE_MESSAGE_IDS: string[];
38
+ declare const EMPTY_MESSAGE_SCROLLER_VISIBILITY_STATE: BrnMessageScrollerVisibilityState;
39
+
40
+ declare class BrnMessageScrollerButton {
41
+ private readonly _scroller;
42
+ protected readonly _pending: _angular_core.WritableSignal<boolean>;
43
+ /**
44
+ * Transcript edge to scroll toward.
45
+ * @default 'end'
46
+ */
47
+ readonly direction: _angular_core.InputSignal<BrnMessageScrollerButtonDirection>;
48
+ /**
49
+ * Native scroll behavior when clicked.
50
+ * @default 'smooth'
51
+ */
52
+ readonly behavior: _angular_core.InputSignal<ScrollBehavior>;
53
+ /**
54
+ * Accessible name for the control.
55
+ * When omitted, defaults from `direction` (`Scroll to end` / `Scroll to start`).
56
+ */
57
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
58
+ /** Whether overflow exists toward this button's direction. */
59
+ readonly active: _angular_core.Signal<boolean>;
60
+ /** Resolved accessible name (explicit `aria-label` or direction default). */
61
+ readonly resolvedAriaLabel: _angular_core.Signal<string>;
62
+ constructor();
63
+ protected onClick(event: MouseEvent): void;
64
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnMessageScrollerButton, never>;
65
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnMessageScrollerButton, "button[brnMessageScrollerButton]", ["brnMessageScrollerButton"], { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "behavior": { "alias": "behavior"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
66
+ }
67
+
68
+ declare class BrnMessageScrollerContent {
69
+ /**
70
+ * aria-relevant for the live log region.
71
+ * @default 'additions'
72
+ */
73
+ readonly ariaRelevant: _angular_core.InputSignal<string>;
74
+ /**
75
+ * Optional class name applied to the internal tail spacer.
76
+ */
77
+ readonly spacerClassName: _angular_core.InputSignal<string | undefined>;
78
+ constructor();
79
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnMessageScrollerContent, never>;
80
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnMessageScrollerContent, "[brnMessageScrollerContent],brn-message-scroller-content", ["brnMessageScrollerContent"], { "ariaRelevant": { "alias": "aria-relevant"; "required": false; "isSignal": true; }; "spacerClassName": { "alias": "spacerClassName"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
81
+ }
82
+
83
+ declare class BrnMessageScrollerItem {
84
+ /**
85
+ * Stable row id for scrollToMessage, visibility, and prepend preservation.
86
+ */
87
+ readonly messageId: _angular_core.InputSignal<string | undefined>;
88
+ /**
89
+ * Marks a turn boundary that newly appended anchors and last-anchor restore use.
90
+ * @default false
91
+ */
92
+ readonly scrollAnchor: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
93
+ constructor();
94
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnMessageScrollerItem, never>;
95
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnMessageScrollerItem, "[brnMessageScrollerItem],brn-message-scroller-item", ["brnMessageScrollerItem"], { "messageId": { "alias": "messageId"; "required": false; "isSignal": true; }; "scrollAnchor": { "alias": "scrollAnchor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
96
+ }
97
+
98
+ declare class BrnMessageScrollerProvider {
99
+ /**
100
+ * Follow new content at the bottom while the viewport is already at the end.
101
+ * @default false
102
+ */
103
+ readonly autoScroll: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
104
+ /**
105
+ * Opening position on the first non-empty render, applied once.
106
+ * @default 'end'
107
+ */
108
+ readonly defaultScrollPosition: _angular_core.InputSignal<BrnMessageScrollerDefaultScrollPosition>;
109
+ /**
110
+ * Distance from an edge that still counts as at-top/at-bottom.
111
+ * @default 8
112
+ */
113
+ readonly scrollEdgeThreshold: _angular_core.InputSignalWithTransform<number, NumberInput>;
114
+ /**
115
+ * Extra top margin for a newly anchored row, added to scrollMargin.
116
+ * @default 64
117
+ */
118
+ readonly scrollPreviousItemPeek: _angular_core.InputSignalWithTransform<number, NumberInput>;
119
+ /**
120
+ * Default margin on the aligned edge for commands and visibility.
121
+ * @default 0
122
+ */
123
+ readonly scrollMargin: _angular_core.InputSignalWithTransform<number, NumberInput>;
124
+ constructor();
125
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnMessageScrollerProvider, never>;
126
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnMessageScrollerProvider, "[brnMessageScrollerProvider]", ["brnMessageScrollerProvider"], { "autoScroll": { "alias": "autoScroll"; "required": false; "isSignal": true; }; "defaultScrollPosition": { "alias": "defaultScrollPosition"; "required": false; "isSignal": true; }; "scrollEdgeThreshold": { "alias": "scrollEdgeThreshold"; "required": false; "isSignal": true; }; "scrollPreviousItemPeek": { "alias": "scrollPreviousItemPeek"; "required": false; "isSignal": true; }; "scrollMargin": { "alias": "scrollMargin"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
127
+ }
128
+
129
+ declare class BrnMessageScrollerRoot {
130
+ constructor();
131
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnMessageScrollerRoot, never>;
132
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnMessageScrollerRoot, "[brnMessageScroller],brn-message-scroller", ["brnMessageScroller"], {}, {}, never, never, true, never>;
133
+ }
134
+
135
+ declare class BrnMessageScrollerViewport {
136
+ private readonly _scroller;
137
+ /**
138
+ * Keep the first visible messageId row stable on prepend.
139
+ * @default true
140
+ */
141
+ readonly preserveScrollOnPrepend: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
142
+ /**
143
+ * Accessible name for the scroll region.
144
+ * @default 'Messages'
145
+ */
146
+ readonly ariaLabel: _angular_core.InputSignal<string>;
147
+ /**
148
+ * Tab index for keyboard scrolling.
149
+ * @default 0
150
+ */
151
+ readonly tabIndex: _angular_core.InputSignalWithTransform<number, NumberInput>;
152
+ constructor();
153
+ protected onScroll(): void;
154
+ protected onWheel(): void;
155
+ protected onTouchMove(): void;
156
+ protected onKeyDown(event: KeyboardEvent): void;
157
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnMessageScrollerViewport, never>;
158
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnMessageScrollerViewport, "[brnMessageScrollerViewport],brn-message-scroller-viewport", ["brnMessageScrollerViewport"], { "preserveScrollOnPrepend": { "alias": "preserveScrollOnPrepend"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
159
+ }
160
+
161
+ /**
162
+ * Headless message-scroller controller. Owns scroll behavior and state; renders no DOM.
163
+ * Combine refs, commands, and controller policy from the shadcn React implementation.
164
+ */
165
+ declare class BrnMessageScroller {
166
+ private _autoScroll;
167
+ private _autoscrolling;
168
+ private _autoscrollingTimeout;
169
+ private _streamingTurn;
170
+ private _content;
171
+ private _defaultScrollPosition;
172
+ private _defaultScrollPositionApplied;
173
+ private _firstItem;
174
+ private _itemCount;
175
+ private _lastScrollTop;
176
+ private readonly _messageElements;
177
+ private _mode;
178
+ private _pendingScrollFrame;
179
+ private _pendingScrollToMessage;
180
+ private _prependRestore;
181
+ private _preserveScrollOnPrepend;
182
+ private _root;
183
+ private _scrollEdgeThreshold;
184
+ private _scrollMargin;
185
+ private _scrollPreviousItemPeek;
186
+ private _spacerGap;
187
+ private _spacerHeight;
188
+ private _spacer;
189
+ /** Height queued before the spacer mounts (created after hydration). */
190
+ private _pendingSpacerHeight;
191
+ private _stateFrame;
192
+ private _viewport;
193
+ private _visibilityFrame;
194
+ private _visibilityObserver;
195
+ private _visibilityTracking;
196
+ private readonly _visibleMessageIds;
197
+ private _handledScrollAnchors;
198
+ private _destroyed;
199
+ private readonly _scrollable;
200
+ private readonly _visibility;
201
+ /** Scrollable edges snapshot (start / end overflow). */
202
+ readonly scrollable: _angular_core.Signal<BrnMessageScrollerScrollable>;
203
+ /** Visibility snapshot (current anchor + visible message ids). Requires observeVisibility(). */
204
+ readonly visibility: _angular_core.Signal<BrnMessageScrollerVisibilityState>;
205
+ /**
206
+ * @internal
207
+ * Whether prepend scroll preservation is enabled (mirrored from viewport).
208
+ */
209
+ get preserveScrollOnPrepend(): boolean;
210
+ /** @internal */
211
+ set preserveScrollOnPrepend(value: boolean);
212
+ /**
213
+ * @internal
214
+ * Apply provider configuration. Safe to call when inputs change.
215
+ */
216
+ configure(props: BrnMessageScrollerProviderProps): void;
217
+ /**
218
+ * Scroll a registered `messageId` into view.
219
+ * Queues the request when the item is not mounted yet (empty transcript).
220
+ * @returns false when the id is unknown and items are already present
221
+ */
222
+ scrollToMessage(messageId: string, options?: BrnMessageScrollerScrollOptions): boolean;
223
+ /**
224
+ * Jump to the live end of the transcript.
225
+ * With `autoScroll`, re-enters following-bottom mode.
226
+ */
227
+ scrollToEnd({ behavior }?: BrnMessageScrollerScrollOptions): boolean;
228
+ /** Jump to the start of the transcript and leave follow/anchor modes. */
229
+ scrollToStart({ behavior }?: BrnMessageScrollerScrollOptions): boolean;
230
+ /** @internal */
231
+ registerMessage: BrnMessageScrollerRegisterMessage;
232
+ /** @internal */
233
+ handleContentChange(): void;
234
+ /** @internal */
235
+ handleResize(): void;
236
+ /** @internal */
237
+ syncAfterScroll(): void;
238
+ /** @internal */
239
+ userScrollIntent(): void;
240
+ /**
241
+ * Start tracking `visibility` (current anchor + visible message ids).
242
+ * Uses IntersectionObserver when available; otherwise falls back to layout.
243
+ */
244
+ observeVisibility(): void;
245
+ /** Stop visibility tracking and reset the `visibility` signal. */
246
+ unobserveVisibility(): void;
247
+ /** @internal */
248
+ setRootElement(element: HTMLDivElement | null): void;
249
+ /** @internal */
250
+ clearRootElement(element: HTMLDivElement): void;
251
+ /** @internal */
252
+ setViewportElement(element: HTMLDivElement | null): void;
253
+ /** @internal */
254
+ clearViewportElement(element: HTMLDivElement): void;
255
+ /** @internal */
256
+ setContentElement(element: HTMLDivElement | null): void;
257
+ /** @internal */
258
+ clearContentElement(element: HTMLDivElement): void;
259
+ /** @internal */
260
+ setSpacerElement(element: HTMLDivElement | null): void;
261
+ /** @internal */
262
+ clearSpacerElement(element: HTMLDivElement): void;
263
+ private resetForContentMount;
264
+ /** @internal */
265
+ destroy(): void;
266
+ private setAutoScrolling;
267
+ private setTailSpacerHeight;
268
+ private scrollToPosition;
269
+ private scrollToElement;
270
+ private reanchorToAnchoredMessage;
271
+ private flushPendingScrollToMessage;
272
+ private writeStateAttributes;
273
+ /** Arm follow-bottom at the end; release only on real upward scroll (not content growth). */
274
+ private reconcileFollowMode;
275
+ private commitScrollState;
276
+ private scheduleStateCommit;
277
+ private scheduleVisibilitySync;
278
+ private restorePrependedAnchor;
279
+ private capturePrependAnchor;
280
+ private schedulePendingScrollToMessageFlush;
281
+ private applyDefaultScrollPosition;
282
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnMessageScroller, never>;
283
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<BrnMessageScroller>;
284
+ }
285
+
286
+ declare const BrnMessageScrollerToken: InjectionToken<BrnMessageScroller>;
287
+ declare function injectBrnMessageScroller(): BrnMessageScroller;
288
+ declare function provideBrnMessageScroller(scroller: Type<BrnMessageScroller>): ExistingProvider;
289
+
290
+ declare const BrnMessageScrollerImports: readonly [typeof BrnMessageScrollerProvider, typeof BrnMessageScrollerRoot, typeof BrnMessageScrollerViewport, typeof BrnMessageScrollerContent, typeof BrnMessageScrollerItem, typeof BrnMessageScrollerButton];
291
+
292
+ export { AUTOSCROLLING_CLEAR_DELAY, BrnMessageScroller, BrnMessageScrollerButton, BrnMessageScrollerContent, BrnMessageScrollerImports, BrnMessageScrollerItem, BrnMessageScrollerProvider, BrnMessageScrollerRoot, BrnMessageScrollerToken, BrnMessageScrollerViewport, DEFAULT_SCROLL_EDGE_THRESHOLD, DEFAULT_SCROLL_MARGIN, DEFAULT_SCROLL_PREVIOUS_ITEM_PEEK, EMPTY_MESSAGE_SCROLLER_SCROLLABLE, EMPTY_MESSAGE_SCROLLER_VISIBILITY_STATE, EMPTY_VISIBLE_MESSAGE_IDS, SCROLL_POSITION_EPSILON, USER_SCROLL_KEYS, injectBrnMessageScroller, provideBrnMessageScroller };
293
+ export type { BrnMessageScrollerButtonDirection, BrnMessageScrollerDefaultScrollPosition, BrnMessageScrollerMode, BrnMessageScrollerProviderProps, BrnMessageScrollerRegisterMessage, BrnMessageScrollerScrollAlign, BrnMessageScrollerScrollOptions, BrnMessageScrollerScrollable, BrnMessageScrollerVisibilityState };
@@ -77,7 +77,7 @@ type ToastT = {
77
77
  */
78
78
  cancel?: {
79
79
  label: string;
80
- onClick?: () => void;
80
+ onClick?: (event: MouseEvent) => void;
81
81
  };
82
82
  /**
83
83
  * The function gets called when either the close button is clicked, or the toast is swiped.
@@ -271,6 +271,37 @@ type ToastProps = {
271
271
  classes: ToastClassnames;
272
272
  unstyled: boolean;
273
273
  };
274
+ type ToastAction = {
275
+ label: string;
276
+ onClick: (event: MouseEvent) => void;
277
+ };
278
+ type ToastActionTemplateContext = {
279
+ $implicit: ToastAction;
280
+ toast: ToastT;
281
+ };
282
+ type ToastActionTemplateRef = TemplateRef<ToastActionTemplateContext>;
283
+
284
+ /**
285
+ * Utils directory to typecheck the context of the templateRef
286
+ * {@link ToastActionTemplateContext} context for content
287
+ */
288
+ declare class BrnToastAction {
289
+ readonly templateRef: TemplateRef<ToastActionTemplateContext>;
290
+ static ngTemplateContextGuard(_directive: BrnToastAction, context: unknown): context is ToastActionTemplateContext;
291
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnToastAction, never>;
292
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnToastAction, "[brnToastAction]", ["toastAction"], {}, {}, never, never, true, never>;
293
+ }
294
+
295
+ /**
296
+ * Utils directory to typecheck the context of the templateRef
297
+ * {@link ToastActionTemplateContext} context for content
298
+ */
299
+ declare class BrnToastCancelAction {
300
+ readonly templateRef: TemplateRef<ToastActionTemplateContext>;
301
+ static ngTemplateContextGuard(_directive: BrnToastCancelAction, context: unknown): context is ToastActionTemplateContext;
302
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnToastCancelAction, never>;
303
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnToastCancelAction, "[brnToastCancelAction]", ["toastCancelAction"], {}, {}, never, never, true, never>;
304
+ }
274
305
 
275
306
  declare class BrnSonnerToaster {
276
307
  private readonly _platformId;
@@ -315,6 +346,8 @@ declare class BrnSonnerToaster {
315
346
  protected readonly _errorIcon: _angular_core.Signal<TemplateRef<any> | undefined>;
316
347
  protected readonly _warningIcon: _angular_core.Signal<TemplateRef<any> | undefined>;
317
348
  protected readonly _infoIcon: _angular_core.Signal<TemplateRef<any> | undefined>;
349
+ protected readonly _action: _angular_core.Signal<BrnToastAction | undefined>;
350
+ protected readonly _cancelAction: _angular_core.Signal<BrnToastCancelAction | undefined>;
318
351
  constructor();
319
352
  handleBlur(event: FocusEvent): void;
320
353
  handleFocus(event: FocusEvent): void;
@@ -324,7 +357,7 @@ declare class BrnSonnerToaster {
324
357
  private readonly handleThemePreferenceChange;
325
358
  private getActualTheme;
326
359
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnSonnerToaster, never>;
327
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BrnSonnerToaster, "brn-sonner-toaster", never, { "invert": { "alias": "invert"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "hotKey": { "alias": "hotKey"; "required": false; "isSignal": true; }; "richColors": { "alias": "richColors"; "required": false; "isSignal": true; }; "expand": { "alias": "expand"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "visibleToasts": { "alias": "visibleToasts"; "required": false; "isSignal": true; }; "closeButton": { "alias": "closeButton"; "required": false; "isSignal": true; }; "toastOptions": { "alias": "toastOptions"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, ["_loadingIcon", "_successIcon", "_errorIcon", "_warningIcon", "_infoIcon"], never, true, never>;
360
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BrnSonnerToaster, "brn-sonner-toaster", never, { "invert": { "alias": "invert"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "hotKey": { "alias": "hotKey"; "required": false; "isSignal": true; }; "richColors": { "alias": "richColors"; "required": false; "isSignal": true; }; "expand": { "alias": "expand"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "visibleToasts": { "alias": "visibleToasts"; "required": false; "isSignal": true; }; "closeButton": { "alias": "closeButton"; "required": false; "isSignal": true; }; "toastOptions": { "alias": "toastOptions"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, ["_loadingIcon", "_successIcon", "_errorIcon", "_warningIcon", "_infoIcon", "_action", "_cancelAction"], never, true, never>;
328
361
  }
329
362
 
330
363
  interface BrnSonnerToasterConfig {
@@ -382,7 +415,7 @@ declare const toast: typeof toastFunction & {
382
415
  loading: (message: string | Type<unknown>, data?: ExternalToast) => string | number;
383
416
  };
384
417
 
385
- declare const BrnSonnerImports: readonly [typeof BrnSonnerToaster];
418
+ declare const BrnSonnerImports: readonly [typeof BrnSonnerToaster, typeof BrnToastAction, typeof BrnToastCancelAction];
386
419
 
387
- export { BrnSonnerImports, BrnSonnerToaster, defaultClasses, injectBrnSonnerToasterConfig, provideBrnSonnerToasterConfig, toast, toastState };
388
- export type { BrnSonnerToasterConfig, Expand, ExternalToast, HeightT, Position, PromiseData, PromiseT, Theme, ToastClassnames, ToastOptions, ToastProps, ToastT, ToastToDismiss, ToastTypes, ToasterProps };
420
+ export { BrnSonnerImports, BrnSonnerToaster, BrnToastAction, BrnToastCancelAction, defaultClasses, injectBrnSonnerToasterConfig, provideBrnSonnerToasterConfig, toast, toastState };
421
+ export type { BrnSonnerToasterConfig, Expand, ExternalToast, HeightT, Position, PromiseData, PromiseT, Theme, ToastAction, ToastActionTemplateContext, ToastActionTemplateRef, ToastClassnames, ToastOptions, ToastProps, ToastT, ToastToDismiss, ToastTypes, ToasterProps };