import { __name } from "../_virtual/_rolldown/runtime.mjs"; import { NonEmptyObject } from "type-fest"; //#region src/hooks/useSetState.d.ts /** * Differs from useState in that: * - it uses custom equal function (shallowEqual by default) to determine whether the state has changed. * - allows partial updates to the state */ export declare function useSetState(initialState: T | (() => T), equal?: (a: T, b: T) => boolean): readonly [T, (statePartial: NonEmptyObject> | ((current: T) => NonEmptyObject>)) => void]; //#endregion