/** * Custom hooks that triggers a callback when a click is detected * outside the target element. * * @param handler - Function to be called when clicked outside * @param events - Array of events to listen to * @param nodes - Array of nodes to check against * @returns Ref to be attached to the target element * * @example * const ref = useClickOutside(() => { * console.log('Clicked outside!'); * }); *
Click me!
* */ export declare function useClickOutside(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): import("react").RefObject;