///
type MouseEventType = 'click' | 'dblclick' | 'mouseup' | 'mousedown' | 'contextmenu';
/**
* useOutsideClick hook
* Checks if a click happened outside a Ref. Handy for dropdowns, modals and popups etc.
*
* @param ref Ref whose outside click needs to be listened to
* @param handler Callback to fire on outside click
* @param options `when` - A boolean which activates the hook only when it is true. Useful for conditionally enable the outside click.
* `eventType` - type of event that trigger handler
* `useCapture` - A boolean value indicating whether events of this type will be dispatched to the registered listener before being dispatched to any EventTarget beneath it in the DOM tree. @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#:~:text=with%20the%20listener.-,useCapture,-Optional
*/
export declare const useOutsideClick: (ref: import("react").RefObject, handler: (e: MouseEvent) => void, options?: {
when?: boolean;
eventType: MouseEventType;
useCapture?: boolean;
}) => void;
export {};