import "./toast.css"; import type * as React from "react"; /** Each verb queues one toast; dismissal is the reader's or the timer's. */ export interface ToastActions { success: (message: string) => void; error: (message: string) => void; warning: (message: string) => void; /** An undoable act (a detach, a tick) earns no confirm, because the undo offer makes it safe. A * confirmed act reports `success` with nothing back, since a second way out says the first did not * count. */ undo: (message: string, onUndo: () => void) => void; } export declare function useToast(): ToastActions; export interface ToastProviderProps { children?: React.ReactNode; } /** Mount once around the app: the queue and a fixed strip at the top, above every overlay, since a toast * reports what an `Alert` just confirmed. */ export declare function ToastProvider({ children }: ToastProviderProps): React.JSX.Element;