/// <reference types="react" />
export declare function useOpenClose<TEvent>(isOpen: boolean, onClose?: (event: TEvent) => void): {
    handleOnClose: (event: TEvent) => void;
    handleOnFocus: () => void;
    open: boolean;
    setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
    toggle: (event: TEvent) => void;
};
//# sourceMappingURL=useOpenClose.d.ts.map