import type { ReactSetState } from "../use-safe-state/index.cjs"; export type UseBooleanActions = { /** * Set the boolean state to `true`. */ setTrue: () => void; /** * Set the boolean state to `false`. */ setFalse: () => void; /** * Set the boolean state to the given value. */ setState: ReactSetState; /** * Toggle the boolean state. */ toggle: () => void; }; export type UseBooleanReturns = readonly [value: boolean, UseBooleanActions]; /** * A React Hook for managing `boolean` state. * * @param {boolean} [initialValue=true] The initial value of the boolean state. * * @since 1.3.0 */ export declare function useBoolean(initialValue?: boolean): UseBooleanReturns;