import { ToastOptions } from './toast'; /** * Internal toast state stored in the toast store. * * @category Toast */ export type ToastState = Required> & Omit; /** * Partial update object used when modifying a toast. * * @category Toast */ export type ToastUpdate = Partial>; /** * Subscriber function receiving current toast list. * * @category Toast */ export type ToastStoreSubscriber = (toasts: ToastState[]) => void; /** * Internal store managing toast lifecycle and subscriptions. * * @category Toast */ export declare const toastStore: { /** * Subscribes to toast state updates. * * @function */ subscribe(subscriber: ToastStoreSubscriber): () => void; /** * Adds a new toast to the store. * * Priority toasts are inserted at the beginning * so they appear before normal queued toasts. * * @function */ add(toast: ToastState): void; /** * Updates an existing toast. * * @function */ update(id: string, partial: ToastUpdate): void; /** * Removes a toast from the store. * * @function */ remove(id: string): void; /** * Removes all toasts. * * @function */ clear(): void; /** * Returns current toast list snapshot. * * @function */ getState(): ToastState[]; };