import { RefObject } from 'react'; export declare const INVISIBLE = "invisible"; export declare const VISIBLE = "visible"; export declare const ENTERING = "entering"; export declare const EXITING = "exiting"; declare type Config = { onClose?: VoidFunction; onEnter?: VoidFunction; onLeave?: VoidFunction; visible: boolean; }; interface ShowHideHook { (config: Config): { animationState: boolean; isOnTop: boolean; onClose: VoidFunction; ref: RefObject; state: typeof INVISIBLE | typeof ENTERING | typeof VISIBLE | typeof EXITING; }; } export declare type ShowHideState = ReturnType['state']; export declare const useShowHide: ShowHideHook; export {}; //# sourceMappingURL=useShowHide.d.ts.map