//#region src/useOnClickOutside.d.ts type Ref = HTMLElement | React.RefObject | null | string; /** * React hook that triggers a handler when a click or touch event occurs outside the specified element(s). * * Useful for closing popovers, modals, or dropdowns when the user clicks outside. * * @param ref - A single ref, DOM element, selector string, or an array of these, representing the element(s) to detect outside clicks for * @param handler - Function called when a click or touch event occurs outside the specified element(s) * * @example * ```tsx * const ref = useRef(null); * useOnClickOutside(ref, () => setOpen(false)); * ``` */ declare function useOnClickOutside(ref: Ref | Ref[], handler: (event: MouseEvent | TouchEvent) => void): void; //#endregion export { useOnClickOutside };