import { type PromiseToastMessages, type ToastId, type ToastOptions, type ToastShowDetail } from './toast-context'; export type ToastCallable = { (title: string, options?: ToastOptions): ToastId; message: (title: string, options?: ToastOptions) => ToastId; success: (title: string, options?: ToastOptions) => ToastId; error: (title: string, options?: ToastOptions) => ToastId; info: (title: string, options?: ToastOptions) => ToastId; warning: (title: string, options?: ToastOptions) => ToastId; loading: (title: string, options?: ToastOptions) => ToastId; promise: (promise: Promise | (() => Promise), messages: PromiseToastMessages) => ToastId; dismiss: (id?: ToastId) => void; /** Remove all toasts from the store (Storybook / test resets). */ clear: () => void; }; /** * Primary imperative toast API (Sonner-shaped). Requires a mounted ``. * Prefer this over {@link showToast} in application code. */ export declare const toast: ToastCallable; /** * DOM event bridge: dispatches `rui-toast-show` on `document` for hosts that listen globally. * Application code should use {@link toast} unless you intentionally decouple via custom events. */ export declare function showToast(detail: ToastShowDetail): void; /** * DOM event bridge: dispatches `rui-toast-dismiss` on `document`. * Application code should use {@link toast.dismiss} unless you intentionally decouple via custom events. */ export declare function dismissToast(id?: ToastId): void;