import { StoreonStore } from 'storeon'; import { NotificationProps } from './Notification.types'; export type NotificationItem = { id: string; isHidden?: boolean; }; export type NotificationsState = { notifications: NotificationItem[]; }; export type NotificationsEvents = { add: NotificationItem; hide: string; remove: string; }; /** * Создает хранилище с ключом `notifications` к массиву с окнами. */ export declare const NotificationsStore: StoreonStore; export declare const closeNotification: (id: string, delay?: number) => void; /** * Открыть новое оповещение. * @param props Пропсы всплывающего оповещения * @return Идентификатор нового оповещения */ export declare function addNotification({ id: externalId, onTimeoutClose, ...rest }: NotificationProps, timeout?: number | null): string; //# sourceMappingURL=NotificationsStore.d.ts.map