import { Id, IdOpts, ToastContent, ToastOptions, UpdateOptions } from '../types'; import { isToastActive } from './store'; declare function toast(content: ToastContent, options?: ToastOptions): Id; declare namespace toast { var loading: (content: ToastContent, options?: ToastOptions | undefined) => Id; var promise: typeof handlePromise; var success: (content: ToastContent, options?: ToastOptions | undefined) => Id; var info: (content: ToastContent, options?: ToastOptions | undefined) => Id; var error: (content: ToastContent, options?: ToastOptions | undefined) => Id; var warning: (content: ToastContent, options?: ToastOptions | undefined) => Id; var warn: (content: ToastContent, options?: ToastOptions | undefined) => Id; var dark: (content: ToastContent, options?: ToastOptions | undefined) => Id; var dismiss: { (params: RemoveParams): void; (params?: Id | undefined): void; }; var clearWaitingQueue: typeof import("./store").clearWaitingQueue; var isActive: typeof isToastActive; var update: (toastId: Id, options?: UpdateOptions) => void; var done: (id: Id) => void; var onChange: typeof import("./store").onChange; var play: (opts?: IdOpts | undefined) => void; var pause: (opts?: IdOpts | undefined) => void; } export interface ToastPromiseParams { pending?: string | UpdateOptions; success?: string | UpdateOptions; error?: string | UpdateOptions; } declare function handlePromise(promise: Promise | (() => Promise), { pending, error, success }: ToastPromiseParams, options?: ToastOptions): Promise; interface RemoveParams { id?: Id; containerId: Id; } export { toast };