/// <reference types="react" />
declare type TargetType = React.RefObject<Element> | Element | null | undefined;
interface Options {
    disabled: boolean;
    triggerTarget: TargetType;
    overlayTarget: TargetType;
}
/**
 * A hook that listens to the document click event and closes the overlay.
 * @param onRootClose
 * @param param1
 */
declare function useRootClose(onRootClose: (e: Event) => void, { disabled, triggerTarget, overlayTarget }: Options): void;
export default useRootClose;
