///
import { NotificationPayload } from './types';
export declare type NotificationContextType = {
notifications: NotificationPayload[];
addNotification: (notification: NotificationPayload) => void;
takeNotification: () => NotificationPayload | void;
resetNotifications: () => void;
};
/**
* Context for the notification state and modifiers
*
* @example // display notifications
* import { useNotificationContext } from 'react-admin';
*
* const App = () => {
* const { notifications } = useNotificationContext();
* return (
*
* {notifications.map(({ message }) => (
* - { message }
* ))}
*
* );
* };
*
* @example // reset notifications
* import { useNotificationContext } from 'react-admin';
*
* const ResetNotificationsButton = () => {
* const { resetNotifications } = useNotificationContext();
* return (
*
* );
* };
*/
export declare const NotificationContext: import("react").Context;
//# sourceMappingURL=NotificationContext.d.ts.map