/// <reference types="react" />
/**
 * Custom hook that fires an onClick callback when the user clicks
 * outside of the element referenced by the returned ref.
 *
 * @param onClick the callback fired when a click is performed "outside"
 * @param ignoreClick optional check to be run on the element that receives
 * the "click." If ignoreClick returns true, the click is not considered outside
 * even if it was outside the element referenced.
  
 * @returns a ref that should be used to mark the "inside" element
 */
declare const useClickOutside: (onClick: () => void, ignoreClick?: (target: EventTarget) => boolean) => import("react").MutableRefObject<any>;
export default useClickOutside;
