/** * Hook for managing object state with partial updates * * @template T - The type of the state object * @param initialState - Initial state object or function that returns state * @returns Tuple of [state, setState] where setState accepts partial updates * * @example * ```tsx * const UserForm = () => { * const [user, setUser] = useSetState({ name: '', email: '' }); * return ( *
* setUser({ name: e.target.value })} * /> * setUser({ email: e.target.value })} * /> *
* ); * }; * ``` */ export declare function useSetState>(initialState: T | (() => T)): [T, (updates: Partial | ((state: T) => Partial)) => void]; //# sourceMappingURL=useSetState.d.ts.map