/** * Internal dependencies */ import type { StoreConfig, Action, ThunkArgs } from '../../utils/store-types'; export declare enum ActionType { Unknown = "REDUX_UNKNOWN" } type UnknownAction = Action; export type CombinedAction = UnknownAction; export type State = Record; export type ActionCreators = typeof actions; export type Selectors = typeof selectors; type DispatcherArgs = ThunkArgs; declare const actions: { /** * Opens a modal. * * @since 0.4.0 * * @param modalId - Modal identifier. * @returns Action creator. */ openModal(modalId: string): ({ registry }: DispatcherArgs) => void; /** * Closes the currently open modal. * * @since 0.4.0 * * @returns Action creator. */ closeModal(): ({ registry }: DispatcherArgs) => void; /** * Toggles a modal. * * If the modal is active, it will be closed. * If the modal is closed or another modal is active, it will be opened. * * @since 0.4.0 * * @param modalId - Modal identifier. * @returns Action creator. */ toggleModal(modalId: string): ({ dispatch, select }: DispatcherArgs) => void; }; declare const selectors: { isModalActive: { (_state: State, modalId: string): boolean; isRegistrySelector?: boolean; registry?: any; }; }; declare const storeConfig: StoreConfig; export default storeConfig; //# sourceMappingURL=modal.d.ts.map