import { RefObject } from 'react'; /** * Hook that detects clicks outside of a referenced element. * * Attaches mousedown and touchstart event listeners to the document * and calls the handler when a click occurs outside the referenced element. * Useful for closing dropdowns, modals, or popovers when clicking outside. * * @param ref - React ref object pointing to the element to monitor * @param handler - Callback invoked when a click outside the element is detected */ export declare function useClickOutside(ref: RefObject, handler: (event: Event) => void): void; //# sourceMappingURL=useClickOutside.d.ts.map