type Props = { onOpen?: () => void; onClose?: () => void; }; /** * A custom React hook that manages the open/closed state of a component. * * @param defaultOpen - Initial open state (default is false). * @returns A tuple containing the current open state and an object with methods to open, close, and toggle the state. */ export declare function useDisclosure(initialState?: boolean, options?: Props): readonly [boolean, { readonly open: () => void; readonly close: () => void; readonly toggle: () => void; }]; export {};