/** * Hook that creates `setState` method which works similar to how * `this.setState` works in class components. It merges object changes into * current state. */ export declare const useSetState: (initialState?: T) => [T, (patch: Partial | ((prevState: T) => Partial)) => void];