import { ActionMap } from '@tidy-ui/commons'; import { TToastItem } from '../types'; /** * Toaster actions */ export declare enum ToasterActions { AddToast = "ADD_TOAST", Clear = "CLEAR", QueueToast = "QUEUE_TOAST", RemoveToast = "REMOVE_TOAST" } /** * Toaster actions payloads */ declare type ToasterPayLoad = { /** * Add toast */ [ToasterActions.AddToast]: { /** * Item to add */ item?: TToastItem; }; /** * Clears all toasts */ [ToasterActions.Clear]: null; /** * Add toast */ [ToasterActions.QueueToast]: { /** * Item to add */ item?: TToastItem; }; /** * Removes toast */ [ToasterActions.RemoveToast]: { /** * Toast id */ id?: string; }; }; /** * Toaster action types */ export declare type ToasterActionTypes = ActionMap[keyof ActionMap]; export {};