/** * Toast utility for triggering toast notifications. * * @example * import { toast } from '@sekiui/elements'; * * // Basic usage * toast('Hello world!'); * * // With type * toast.success('Event created!'); * toast.error('Something went wrong'); * toast.warning('Please review your input'); * toast.info('New version available'); * * // With options * toast('Custom toast', { * description: 'This is a description', * duration: 5000, * action: { * label: 'Undo', * onClick: () => console.log('Undo clicked') * } * }); */ export type ToastType = 'default' | 'success' | 'error' | 'warning' | 'info'; export interface ToastOptions { type?: ToastType; description?: string; duration?: number; action?: { label: string; onClick: () => void; }; } /** @internal Called by when it connects. Returns buffered toasts to replay. */ export declare function registerToaster(): Array<{ message: string; options: ToastOptions; }>; /** @internal Called by when it disconnects. */ export declare function unregisterToaster(): void; /** @internal Test helper. */ export declare function resetToastQueue(): void; /** * Show a toast notification */ declare function toast(message: string, options?: ToastOptions): void; declare namespace toast { var success: (message: string, options?: Omit) => void; var error: (message: string, options?: Omit) => void; var warning: (message: string, options?: Omit) => void; var info: (message: string, options?: Omit) => void; } export { toast };