/** * Toast notification store */ import type { Disposable } from "rune-lab/core"; import type { Toast, ToastType } from "../types.js"; export type { Toast, ToastType }; export declare class ToastStore implements Disposable { #private; toasts: Toast[]; dispose(): void; /** * Add a new toast with FIFO eviction capped at exactly 5 */ send(message: string, type?: ToastType, duration?: number): void; /** * Remove a toast by id and clean up its active timer */ dismiss(id: string): void; /** * Pause the auto-dismiss timer for a toast (e.g. on hover) */ pause(id: string): void; /** * Resume the auto-dismiss timer for a toast (e.g. on mouse leave) */ resume(id: string): void; success(msg: string): void; error(msg: string): void; warn(msg: string): void; info(msg: string): void; } export declare function createToastStore(): ToastStore;