1 | import type { OverlayToasterProps } from "./overlayToasterProps";
|
2 | import type { ToastProps } from "./toast";
|
3 | export type ToastOptions = ToastProps & {
|
4 | key: string;
|
5 | };
|
6 |
|
7 | export interface Toaster {
|
8 | |
9 |
|
10 |
|
11 |
|
12 |
|
13 | show(props: ToastProps, key?: string): string;
|
14 |
|
15 | dismiss(key: string): void;
|
16 |
|
17 | clear(): void;
|
18 |
|
19 | getToasts(): ToastOptions[];
|
20 | }
|
21 | export type ToasterInstance = Toaster;
|
22 | export declare const Toaster: {
|
23 | create: typeof deprecatedToasterCreate;
|
24 | };
|
25 |
|
26 | declare function deprecatedToasterCreate(props?: OverlayToasterProps, container?: HTMLElement): Toaster;
|
27 | export {};
|