import { RefObject } from 'react'; declare type Handler = (event: MouseEvent) => void; /** * @description When using React 17, be careful with the events propagating from the target’s (ref.current) child elements. * You might need to add an `e.stopPropagation()` for those child element’s event handlers to avoid accidentally hiding the target element. * More on this in the link below. * @link https://preply.atlassian.net/wiki/spaces/FPS/pages/3142352982/Risk+of+bug+in+code+with+.addEventListener+and+or+node.contains+in+React+17 */ export declare function useOnClickOutside(ref: RefObject, handler: Handler, mouseEvent?: 'mousedown' | 'mouseup' | 'click'): void; export {}; //# sourceMappingURL=useClickOutside.d.ts.map