///
export interface UseClickOutside {
ref: React.RefObject;
when: boolean;
type?: keyof DocumentEventMap;
onClickOutside: (event: Event) => void;
}
/**
* Use click outside is a hook that will listen for clicks outside of a ref,
* and when true, execute a callback.
*/
export declare const useClickOutside: ({ ref, type, when, onClickOutside, }: UseClickOutside) => void;