/// import { INotification } from '../types'; import { NotificationsActionTypes } from './types'; export interface ITriggerNotification extends Pick { id?: string; type?: 'default' | 'success' | 'warning' | 'danger'; } export interface ITriggerNotificationAction { type: NotificationsActionTypes.TRIGGER_NOTIFICATION; payload: { notification: INotification; }; } export declare const triggerNotification: (notification: ITriggerNotification) => { type: NotificationsActionTypes.TRIGGER_NOTIFICATION; payload: { notification: { id: string; type: string; content: import("react").ReactNode; ttl?: number | undefined; }; }; }; export interface ICloseNotificationAction { type: NotificationsActionTypes.CLOSE_NOTIFICATION; payload: { notificationId: string; }; } export declare const closeNotification: (notificationId: string) => { type: NotificationsActionTypes.CLOSE_NOTIFICATION; payload: { notificationId: string; }; }; export declare type NotificationsAction = ITriggerNotificationAction | ICloseNotificationAction;