import type { Setup } from '../../setup/Setup'; export type NotificationParams = { title?: string; message?: string; color?: string; id?: string; autoClose?: boolean | number; withCloseButton?: boolean; }; export type DisplayedNotification = { notif: NotificationParams; visible: boolean; remove: () => void; }; export type NotificationsManager = { show: (params: NotificationParams) => void; success: (params: Omit) => void; warn: (params: Omit) => void; error: (params: Omit) => void; info: (params: Omit) => void; hide: (id: string) => void; }; /** * This class is a singleton that manages a queue of notifications. */ declare class Notifications implements NotificationsManager { #private; static get instance(): Notifications; queue: NotificationParams[]; maxNotifs: number; autoHideTime: number; hideAnimTime: number; displayed: DisplayedNotification[]; private constructor(); hide(id: string): void; show(notif: NotificationParams): Promise; success(notif: Omit): void; warn(notif: Omit): void; error(notif: Omit): void; info(notif: Omit): void; removeDisplayed(notif: DisplayedNotification): void; updateDisplayed(): void; } export declare const notifications: Notifications; export declare const notificationsSetup: Setup; export {};