import { RefObject } from 'react'; /** Supported event types. */ type EventType = "mousedown" | "mouseup" | "touchstart" | "touchend" | "focusin" | "focusout"; /** * Custom hook that handles clicks outside a specified element. * @template T - The type of the element's reference. * @param {RefObject | RefObject[]} ref - The React ref object(s) representing the element(s) to watch for outside clicks. * @param {(event: MouseEvent | TouchEvent | FocusEvent) => void} handler - The callback function to be executed when a click outside the element occurs. * @param {EventType} [eventType] - The mouse event type to listen for (optional, default is 'mousedown'). * @param {?AddEventListenerOptions} [eventListenerOptions] - The options object to be passed to the `addEventListener` method (optional). * @returns {void} * @public * @see [Documentation](https://usehooks-ts.com/react-hook/use-on-click-outside) * @example * ```tsx * const containerRef = useRef(null); * useClickOutside([containerRef], () => { * // Handle clicks outside the container. * }); * ``` */ export declare function useClickOutside(ref: RefObject | RefObject[], handler: (event: MouseEvent | TouchEvent | FocusEvent) => void, eventType?: EventType, eventListenerOptions?: AddEventListenerOptions): void; export {}; //# sourceMappingURL=use-click-outside.d.ts.map