import type { ContentBuilder, ToastProps } from './types'; export interface ToastData extends Pick { contentBuilder: ContentBuilder; id: number; key: string; } type PartialToastWithIdOrKey = Partial & (Pick | Pick); interface ReducerActionAdd { type: 'add'; payload: ToastData; } interface ReducerActionUpdate { type: 'update'; payload: PartialToastWithIdOrKey; } interface ReducerActionRemove { type: 'remove'; payload: PartialToastWithIdOrKey; } interface ReducerActionCloseAll { type: 'closeAll'; } type ToastReducerAction = ReducerActionAdd | ReducerActionUpdate | ReducerActionRemove | ReducerActionCloseAll; export declare const toasterReducer: (state: ToastData[], action: ToastReducerAction) => ToastData[]; export {};