import type { UseSafeStateOptions } from "../use-safe-state/index.cjs"; import type { Gettable, PureObject } from "../utils/basic.cjs"; export type UseSetStateSetMergedState = (state: Partial> | null | ((pre: Readonly) => Partial> | T | null)) => void; export interface UseSetStateOptions extends UseSafeStateOptions { } export type UseSetStateReturns = readonly [T, UseSetStateSetMergedState]; /** * A React Hook that uses the React Class Component's `this.setState` method for state management. */ export declare function useSetState(initialState: Gettable, options?: UseSetStateOptions): UseSetStateReturns;