import { ReactNode } from 'react'; import { TestId } from './utils'; import { ImperativeToast } from './Toast'; export declare type ToasterProps = { children: ReactNode; } & TestId; declare type AddAction = { type: 'add'; toast: ImperativeToast; }; declare type RemoveAction = { id: string; type: 'remove'; }; export declare type ToasterAction = AddAction | RemoveAction; export declare type ToasterDispatch = (action: ToasterAction) => void; export declare type ToasterState = { toasts: ImperativeToast[]; }; export declare type ToasterContextType = { state: ToasterState; dispatch: ToasterDispatch; }; export {};