import React from 'react'; import { NotificationKind } from 'bloko/blocks/notificationManager/constants'; export interface CommonNotificationProps { /** Флаг автоматического закрытия нотификации */ autoClose?: boolean; /** Число миллисекунд до автоматического закрытия */ autoCloseDelay?: number; /** Тип нотификации */ kind?: NotificationKind; /** Контент */ children?: React.ReactNode; /** data-qa для автотестов */ dataQa?: string; } export interface ContextNotificationProps extends CommonNotificationProps { /** Обработчик закрытия нотификации */ onClose?: (id: number) => void; } export interface ContextNotification { id: number; props: ContextNotificationProps; } export interface NotificationContextValue { notifications: ContextNotification[]; addNotification: (props: ContextNotificationProps) => number; removeNotification: (id: number) => void; closeNotification: (id: number) => void; closeFuncRefs: Record; updateProps: (id: number, props: ContextNotificationProps) => void; } declare const _default: React.Context; export default _default;