import { RefObject } from 'react'; declare type E = HTMLElement; declare type Stage = 'down' | 'up'; export declare function useClickOutside(stage: Stage, ref: RefObject, callback?: (e: MouseEvent) => void): void; export declare function useClickWithin(stage: Stage, ref: RefObject, callback?: (e: MouseEvent) => void): void; export {};