import React from 'react'; import { AlertProps, Status } from '../Alert/Alert'; import { NotificationPositionProps } from './Notification'; interface NotificationArgs extends NotificationPositionProps { key?: string; } export interface AlertArgs extends AlertProps, NotificationArgs { message: React.ReactChild; status: Status; canClose?: boolean; } export interface ElementArgs extends NotificationArgs { element: React.ReactElement; } interface SetNotification { (note: AlertArgs): React.Key; (note: ElementArgs): React.Key; } interface NotificationController { setNotification: SetNotification; clearNotification: (key: React.Key) => void; } export declare const useNotifications: () => NotificationController; export declare const NotificationProvider: React.FC<{ children?: React.ReactNode; }>; export default NotificationProvider;