import type { ModalManagerItem, OpenModalCardProps, OpenModalPageProps } from '../types'; export type ModalManagerState = { modals: ModalManagerItem[]; activeModal: string | null; overlayShowed: boolean; }; export declare const setOverlayShowedInState: (state: ModalManagerState, overlayShowed: boolean) => ModalManagerState; export declare const removeModalFromState: (state: ModalManagerState, id: string) => ModalManagerState; export declare const setPrevActiveModal: (state: ModalManagerState, id: string, needCloseModals: Set) => ModalManagerState; export declare const updateModalPropsInState: (state: ModalManagerState, id: string, props: Omit) => ModalManagerState; export declare const closeAllModals: (state: ModalManagerState, needCloseModals: Set) => ModalManagerState; /** * Закрывает модал: если активный - устанавливает предыдущий, иначе просто удаляет */ export declare const closeModal: (state: ModalManagerState, id: string, needCloseModals: Set) => ModalManagerState; export declare const addModalToState: (state: ModalManagerState, modalData: ModalManagerItem) => ModalManagerState; export declare const getActiveModalProp: (state: ModalManagerState, propGetter: (modal: ModalManagerItem) => T | undefined) => T | undefined; //# sourceMappingURL=modalStateHelpers.d.ts.map