import { Dispatch, SetStateAction } from 'react'; export default function usePropState(state: S | undefined, setState: Dispatch> | undefined, initialState: S | (() => S)): [S, Dispatch>];