export interface UseOpenCloseProps { /** * Initial visibility of the component */ defaultIsOpen?: boolean; /** * If defined, visibility of the component is assumed to be controlled */ isOpen?: boolean; /** * Callback function when component is closed * @returns void */ onClose?: () => void; /** * Callback function when component is opened * @returns void */ onOpen?: () => void; } export interface UseOpenCloseState { /** * If true, sets the controlled component to its visible state */ isOpen: boolean; /** * Callback function to set a falsy value for the `isOpen` parameter. */ handleClose: () => void; /** * Callback function to set a truthy value for the `isOpen` parameter. */ handleOpen: () => void; /** * Callback function to toggle the value of the `isOpen` parameter. */ handleToggle: () => void; } export declare const useOpenClose: (props?: UseOpenCloseProps) => UseOpenCloseState;