import { Dispatch, SetStateAction } from 'react'; /** * Custom hook to manage a boolean state with utility functions to set it to true, false, or toggle its value. * * @param {boolean} [defaultValue=false] - The initial value of the boolean state. * * @example * const { value, onTrue, onFalse, onToggle } = useBoolean(false); * * return ( *
*

Value: {value.toString()}

* * * *
* ); */ type UseBooleanReturn = { value: boolean; onTrue: () => void; onFalse: () => void; onToggle: () => void; setValue: Dispatch>; }; declare function useBoolean(defaultValue?: boolean): UseBooleanReturn; export { type UseBooleanReturn, useBoolean };