///
///
import * as PropTypes from 'prop-types';
import { Component, ComponentClass, ComponentType, ReactNode } from 'react';
import * as NotificationSystem from 'react-notification-system';
import { Notification, System } from 'react-notification-system';
export declare type ResultNotification = Notification & {
uid: number;
};
export declare type Props = {
children: ReactNode;
};
export declare type State = {
notificationSystem: System | null;
};
export declare class NotificationSystemProvider extends Component {
static childContextTypes: {
notificationSystem: PropTypes.Requireable;
};
state: {
notificationSystem: null;
};
getChildContext: () => {
notificationSystem: NotificationSystem.System | null;
};
saveSystemRef: (notificationSystem: NotificationSystem.System) => void;
render(): React.DetailedReactHTMLElement<{
className: string;
children: ({} | null | undefined)[];
}, HTMLElement>;
}
export declare type NotificationProps = {
notification: {
create: (notification: Notification) => ResultNotification;
};
};
export declare const withNotifications: (WrappedComponent: ComponentType) => ComponentClass;