import { RefObject } from 'react';
export interface UseOutsideClickProps {
    /**
     * The reference to a DOM element.
     */
    ref: RefObject<HTMLElement>;
    /**
     * Function invoked when a click is triggered outside the referenced element.
     */
    handler?: (e: Event) => void;
}
/**
 * Example, used in components like Dialogs and Popovers so they can close
 * when a user clicks outside them.
 */
export declare function useOutsideClick(props: UseOutsideClickProps): void;
export declare function getOwnerDocument(node?: HTMLElement | null): Document;
