///
import { Interpreter, State } from 'xstate';
import { NotificationContext } from './notificationMachine';
interface Notification extends NotificationContext {
ref: Interpreter;
}
export interface NotificationsContextType {
notifications: Notification[];
}
interface NotificationsSchema {
states: {
idle: {};
active: {};
};
}
export type NotificationsEvent = {
type: 'NOTIFICATION.ADD';
content: string | React.ReactNode;
id?: string;
notificationType?: string;
autoCloseAfter?: number;
} | {
type: 'NOTIFICATION.REMOVED';
id: string;
} | {
type: 'NOTIFICATION.REMOVE';
id: string;
} | {
type: 'NOTIFICATIONS.CLEAR';
};
export type NotificationsState = State;
export type NotificationsSend = Interpreter['send'];
declare const notificationsMachine: import("xstate").StateMachine;
export { notificationsMachine };