import { RefObject } from 'react';
type Handler = (event: MouseEvent | TouchEvent) => void;
/**
 * @name useClickOutside
 * @description A custom hook that calls a callback function when a click or touch event occurs outside of a specified element.
 * @fileoverview This file contains the source code for the useOnClickOutside hook.
 * @param {RefObject<T>} handler - The reference to the element to check for clicks or touches outside of.
 * @param {EventHandler} events - The callback function to call when a click or touch event occurs outside of the specified element.
 * @returns {void}
 * @template T - The type of the element to check for clicks or touches outside of.
 * @example const modalRef = useRef(null);   useOnClickOutside(modalRef, onClose);

 */
declare function useClickOutside<T extends HTMLElement = HTMLElement>(handler: Handler, events?: ("mousedown" | "mouseup" | "touchstart" | "touchend")[]): RefObject<T | null>;
export { useClickOutside };
//# sourceMappingURL=use-click-outside.d.ts.map