export type EventListenerType = keyof DocumentEventMap;
export declare const DEFAULT_EVENT_TYPES: EventListenerType[];
/**
 * Custom hook to detect clicks outside a specified element.
 *
 * @param callback - The callback function to be called when a click outside the element is detected.
 * @param events - Array of event types to listen for.
 * @param isActive - Flag to only listen for clicks when target element active.
 *
 * @returns A mutable ref object representing the target element.
 */
declare const useClickOutside: <T extends HTMLElement = any>(callback: (event: MouseEvent | TouchEvent) => void, events?: EventListenerType[], isActive?: boolean) => React.MutableRefObject<T>;
export declare const useClickOutsideWithRef: <T extends HTMLElement = any>(ref: React.MutableRefObject<HTMLElement | null> | HTMLElement | null, callback: (event: MouseEvent | TouchEvent) => void, events?: EventListenerType[], isActive?: boolean) => void;
export default useClickOutside;
