export type ToastKind = 'info' | 'warning' | 'error'; export type ToastRequest = { type: ToastKind; title?: string; message: string; key?: string; }; export type ToastEntry = ToastRequest & { id: string; createdAtMs: number; }; type ToastListener = (toasts: ReadonlyArray) => void; export declare class ToastManager { #private; constructor(maxVisibleToasts?: number); toast(request: ToastRequest): string; dismiss(toastId: string): void; clear(): void; getToasts(): ReadonlyArray; subscribe(listener: ToastListener): () => void; } export declare const toastManager: ToastManager; export {}; //# sourceMappingURL=toast-manager.d.ts.map