import type { ToastManagerAddOptions, ToastManagerPromiseOptions, ToastManagerUpdateOptions } from "./use-toast-manager.js"; export interface ToastManagerEvent { action: "add" | "close" | "update" | "promise"; options: { id?: string | undefined; promise?: Promise | undefined; setPromise?: (promise: Promise) => void; [key: string]: unknown; }; } /** * Outside-of-component toast manager. Matches Base UI React's * `createToastManager` surface (`add` / `close` / `update` / `promise` + * the private " subscribe" channel the provider consumes). * * The provider subscribes to every emitted event and dispatches to the * store. Consumers call this manager's methods anywhere — it does not * depend on the Solid owner tree. */ export interface ToastManager { " subscribe": (listener: (event: ToastManagerEvent) => void) => () => void; add: (options: ToastManagerAddOptions) => string; close: (id?: string) => void; update: (id: string, updates: ToastManagerUpdateOptions) => void; promise: (promise: Promise, options: ToastManagerPromiseOptions) => Promise; } /** * Create a standalone toast manager. Pass the returned object to * `` so its events flow into the * provider's store. */ export declare function createToastManager(): ToastManager; //# sourceMappingURL=create-toast-manager.d.ts.map