export interface ToastOptions { title?: string; description?: string; variant?: 'default' | 'success' | 'destructive' | 'info' | 'warning' | 'error'; duration?: number; dismissible?: boolean; } export declare const toast: (options: ToastOptions | string) => string | number; export declare const useToast: () => { toast: (options: ToastOptions | string) => string | number; dismiss: (id?: number | string) => string | number; promise: (promise: Promise | (() => Promise), data?: { duration?: number | undefined; invert?: boolean | undefined; position?: ("top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center") | undefined; style?: React.CSSProperties | undefined; className?: string | undefined; id?: number | string | undefined; icon?: import("react").ReactNode; cancel?: import("react").ReactNode | import("sonner").Action; onDismiss?: ((toast: import("sonner").ToastT) => void) | undefined; action?: import("react").ReactNode | import("sonner").Action; descriptionClassName?: string | undefined; dismissible?: boolean | undefined; richColors?: boolean | undefined; closeButton?: boolean | undefined; classNames?: import("sonner").ToastClassnames | undefined; cancelButtonStyle?: React.CSSProperties | undefined; actionButtonStyle?: React.CSSProperties | undefined; unstyled?: boolean | undefined; onAutoClose?: ((toast: import("sonner").ToastT) => void) | undefined; } & { loading?: string | React.ReactNode; success?: import("react").ReactNode | ((data: ToastData) => React.ReactNode | string | Promise); error?: import("react").ReactNode | ((data: any) => React.ReactNode | string | Promise); description?: import("react").ReactNode | ((data: any) => React.ReactNode | string | Promise); finally?: () => void | Promise; }) => (string & { unwrap: () => Promise; }) | (number & { unwrap: () => Promise; }) | { unwrap: () => Promise; }; }; //# sourceMappingURL=use-toast.d.ts.map