/**
 * Hook to access modal API.
 *
 * Throws an error if used outside the modal context.
 *
 * @internal
 */
export declare const useModal: () => {
    openModal: import("./modal-context").OpenModalFn;
    closeModal: import("./modal-context").CloseModalFn;
    closeAllModals: () => void;
    getModalStack: () => import('../../../infra/contexts/modal-provider').ModalInstance[];
    isModalOpen: (modalId: string) => boolean;
};
