import * as React from 'react'; /** * Creates a custom hook for managing state of a disclosure. * * @param {boolean} initialState - The initial state of the disclosure (default: false). * @param {object} callbacks - Optional object containing onOpen and onClose callback functions. * @param {function} callbacks.onOpen - Function to be called when the disclosure is opened. * @param {function} callbacks.onClose - Function to be called when the disclosure is closed. * @return {array} A tuple containing the current state of the disclosure and an object with functions to open, close, toggle and set the state. */ declare function useDisclosure(initialState?: boolean, callbacks?: { onOpen?: () => void; onClose?: () => void; }): readonly [boolean, { readonly open: () => void; readonly close: () => void; readonly toggle: () => void; readonly setOpened: React.Dispatch>; }]; export { useDisclosure };