import { ReactNode } from 'react'; import { Kind } from '../types'; export interface INotificationContext { NotificationProvider: (props: { children: ReactNode; }) => JSX.Element; useNotifications: () => INotification[]; addNotification: (value: T, options?: INotificationOptions) => void; } export interface INotificationOptions { /** * If a timeout is provided, the notification will dismiss itself after that time. */ timeout?: number | null; kind?: Kind; } export interface INotification { id: number; kind: Kind; value: T; dismiss: () => void; } export declare function createNotificationContext(): INotificationContext;