import { StoreonStore } from 'storeon'; import { NotificationProps } from './Notification'; export declare type NotificationItem = { id: string; isHiding?: boolean; }; export declare type NotificationsState = { notifications: NotificationItem[]; }; export declare 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, ...rest }: NotificationProps, timeout?: number): string; //# sourceMappingURL=NotificationsStore.d.ts.map