import type { MutableRefObject } from "react"; import type { ModalContextType } from "./Modal.types"; interface UseModalOptions { open: boolean; activatorRef?: React.RefObject | null; onRequestClose: () => void; startedInsideRef?: MutableRefObject | undefined; } export interface UseModalProps { floatingRefs: NonNullable; floatingContext: ModalContextType["floatingContext"]; nodeId: string | undefined; activatorRef: React.RefObject; parentId: string | null; getFloatingProps: ModalContextType["getFloatingProps"]; } export declare function useModal({ open, activatorRef: refProp, onRequestClose, startedInsideRef, }: UseModalOptions): UseModalProps; export {};