import { DependencyList, Dispatch, SetStateAction } from 'react'; /** * An extension to the `useState` hook which resets the current value to the `initialValue` every time the `deps` change. * * @param initialValue initial value or a factory to generate one * @param deps array of dependencies * @returns the same result as obtained from `useState` * @typeParam S type of the state value * @category Hook */ export declare function useDependantState(initialValue: S | (() => S), deps: DependencyList): [S, Dispatch>]; //# sourceMappingURL=use-dependant-state.d.ts.map