import type { ReactNode } from 'react'; export type ToastVariant = 'info' | 'success' | 'warn' | 'error'; export interface ToastOptions { id?: string; variant?: ToastVariant; /** Auto-dismiss after this many milliseconds. 0 to disable. Default: 4000. */ durationMs?: number; message: ReactNode; } export interface ToastRecord extends ToastOptions { id: string; createdAt: number; } interface ToastContextValue { push(opts: ToastOptions): string; dismiss(id: string): void; list: ToastRecord[]; } export declare function ToastProvider({ children, now, }: { children: ReactNode; /** Time source for tests. */ now?: () => number; }): import("react/jsx-runtime").JSX.Element; export declare function useToast(): ToastContextValue; export {}; //# sourceMappingURL=Toast.d.ts.map