export interface ToastNotificationOptions { id?: string; /** * Text message */ text: string; /** * Blockbench icon string */ icon?: IconString; /** * Expire time in miliseconds */ expire?: number; /** * Background color, accepts any CSS color string */ color?: string; /** * Method to run on click. * @returns Return `true` to close toast */ click?: (event: Event) => boolean | void; /** * Method to run on close via the close button. * @returns Return `falce` to cancel the close */ onClose?: (event: Event) => boolean | void; } export declare class ToastNotification { node: HTMLLIElement; id: string; options: ToastNotificationOptions; constructor(id: string, options: ToastNotificationOptions); delete(): void; static notifications: Record; } declare const global: { ToastNotification: typeof import("./toast_notification").ToastNotification; }; declare global { type ToastNotification = import('./toast_notification').ToastNotification; const ToastNotification: typeof global.ToastNotification; } export {};