import { Dispatch, ReducerAction, ReducerState } from 'react'; import { Toast } from './toast-context'; export type ToastsState = Toast[]; interface AddToastAction { type: 'add'; toast: Toast; } interface RemoveToastAction { type: 'remove'; id: string; } type ToastsAction = AddToastAction | RemoveToastAction; export declare function toastsReducer(state: ToastsState, action: ToastsAction): ToastsState; type ToastsReducer = [ReducerState, Dispatch>]; export declare function useToastsReducer(): ToastsReducer; export {};