export type ToastKind = 'success' | 'error' | 'info' | 'warning'; export interface ToastAction { label: string; onClick: () => void; } export interface ToastOptions { kind?: ToastKind; /** 自动关闭毫秒数,默认 3000 */ duration?: number; /** 可选动作按钮(如「撤销」),点击后 Toast 立即退出 */ action?: ToastAction; } export declare function toast(message: string, options?: ToastOptions): void; export declare function ToastStack(): import("react").JSX.Element; //# sourceMappingURL=toast.d.ts.map