import { createContext } from 'react' ; import { Notification , Status } from '../reducers/notifications/types' ; declare function upsertNotification ( notification ) ; declare function upsertNotification ( message , options ? ) ; declare function upsertNotification ( message , status , options ? ) ; declare function upsertNotification ( ... args ) ; export type NotificationsContext = { notifications : Notification [ ] ; notify : typeof upsertNotification ; dismissNotification : ( id : string ) => void ; dismissNotifications : ( ) => void ; } ; export const ReapopNotificationsContext = createContext < NotificationsContext > ( undefined ! ) ;