import React, { PureComponent, ReactPortal } from 'react'; import { ContextNotification, ContextNotificationProps } from 'bloko/blocks/notificationManager/context'; export declare const idCounter: { value: number; }; interface NotificationManagerConsumerProps { /** Класс, на котором инициализировать NotificationManager */ notificationManagerClass?: string; } export declare class NotificationManagerConsumer extends PureComponent { state: { isServerENV: boolean; }; portalRoot: Element | null; componentDidMount(): void; render(): ReactPortal | null; } export interface NotificationManagerProps extends NotificationManagerConsumerProps { /** Контент */ children?: React.ReactNode; /** Рендерить сразу с NotificationManagerConsumer */ withConsumer?: boolean; } interface NotificationManagerState { notifications: ContextNotification[]; } export default class NotificationManager extends PureComponent { state: { notifications: never[]; }; static defaultProps: { withConsumer: boolean; }; closeFuncRefs: Record; addNotification: (props: ContextNotificationProps) => number; removeNotification: (id: number) => void; closeNotification: (id: number) => void; updateProps: (id: number, props: ContextNotificationProps) => void; render(): JSX.Element; } export {};