import type { ModalMode } from "./useModal"; /** * Tracks formfactor transitions (card ↔ sheet) while the modal is already * open. `isModeSwitching` is true for the committed render after a mode * change and resets when the modal closes. */ export type ModalModeSwitchState = { readonly prevMode: ModalMode; readonly prevIsOpen: boolean; readonly isModeSwitching: boolean; }; export type ModalModeSwitchAction = { readonly type: "SYNC"; readonly mode: ModalMode; readonly isOpen: boolean; }; /** Reducer tracking formfactor transitions (card/sheet) while the modal is open. */ export declare const modalModeSwitchReducer: (state: ModalModeSwitchState, action: ModalModeSwitchAction) => ModalModeSwitchState;