export type ToastLevel = "info" | "success" | "warn" | "error"; export interface ToastItem { readonly id: string; readonly message: string; readonly level: ToastLevel; readonly createdAt: number; readonly durationMs: number; readonly key?: string | undefined; readonly sticky?: boolean | undefined; } export interface ShowToastOptions { readonly level?: ToastLevel | undefined; readonly durationMs?: number | undefined; readonly key?: string | undefined; readonly sticky?: boolean | undefined; } export type ToastListener = () => void; export declare const DEFAULT_TOAST_DURATION_MS = 5000; export declare const TOAST_ENTER_MS = 200; export declare const TOAST_EXIT_MS = 200; export declare const MAX_TOAST_MESSAGE_CHARS = 400; export declare function toastTotalLifetimeMs(holdMs: number): number; export declare class ToastController { private items; private readonly timers; private readonly listeners; private seq; private disposed; getToasts(): readonly ToastItem[]; subscribe(listener: ToastListener): () => void; show(message: string, options?: ShowToastOptions): string; private resetTimer; info(message: string, options?: Omit): string; success(message: string, options?: Omit): string; warn(message: string, options?: Omit): string; error(message: string, options?: Omit): string; dismiss(id: string): void; clear(): void; dispose(): void; private emit; }