import { Dispatch, SetStateAction } from 'react'; import { NotificationPayload } from './types'; export type NotificationContextType = { notifications: NotificationPayload[]; addNotification: (notification: NotificationPayload) => void; takeNotification: () => NotificationPayload | void; resetNotifications: () => void; setNotifications: Dispatch>; }; /** * Context for the notification state and modifiers * * @example // display notifications * import { useNotificationContext } from 'react-admin'; * * const App = () => { * const { notifications } = useNotificationContext(); * return ( * * ); * }; * * @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