UNPKG

@ariakit/react-core

Version:

Ariakit React core

5 lines (4 loc) 384 B
import type { MutableRefObject } from "react"; import type { DialogStore } from "../dialog-store.ts"; import type { DialogOptions } from "../dialog.tsx"; export declare function useHideOnInteractOutside(store: DialogStore, hideOnInteractOutside: DialogOptions["hideOnInteractOutside"], domReady?: boolean | HTMLElement | null, interactedOutsideRef?: MutableRefObject<boolean>): void;