import { SetStateAction } from 'react'; export type StateCallback = (prevState: S) => void; export type SetState = (updater: Partial | SetStateAction, callback?: StateCallback) => void; /** * Mimics React.Component this.state and this.setState * @returns [state, setState, isPending] - state object, setState function, and pending status */ declare const useSetStateReducer: >(initializerArg?: S, initializer?: import('..').ContextStoreInitializer) => [S, SetState, boolean]; export default useSetStateReducer;