import { State, StateElement, ActionMap, ModalComponentProps, Props } from './types'; export declare enum Types { SHOW = "SHOW", HIDE = "HIDE", UPDATE = "UPDATE", DESTROY = "DESTROY", DESTROY_BY_ROOT_ID = "DESTROY_BY_ROOT_ID", UNKNOWN = "UNKNOWN" } interface Payload { [Types.SHOW]: StateElement & { id: string; }; [Types.HIDE]: { id: string; }; [Types.UPDATE]: { id: string; props: ModalComponentProps; }; [Types.DESTROY]: { id: string; }; [Types.DESTROY_BY_ROOT_ID]: { rootId: string; }; [Types.UNKNOWN]: undefined; } declare type Action = ActionMap[keyof ActionMap]; export declare const initialState: State; export default function reducer(state: State, action: Action): State; export {};