import { type HookErrorHandler } from '../utils/errors.js'; /** Options for {@link useClickOutside}. @public */ export interface UseClickOutsideOptions { /** Whether the outside listener is active. */ readonly enabled?: boolean; /** Observes callback failures before they are rethrown. */ readonly onError?: HookErrorHandler; } /** * Calls `onOutside` for captured pointer presses outside the referenced element. * The listener follows the element to its owner document and supports composed * events crossing a shadow root. * @public */ export declare function useClickOutside(ref: { readonly current: T | null; }, onOutside: (event: PointerEvent) => void, enabledOrOptions?: boolean | UseClickOutsideOptions): void;