interface UseProgressiveState { /** * A custom hook that provides stateful capabilities when the associated prop is not supplied * @param {T} prop The intended prop to be controlled by state * @param {U} initial The initial state value, used only if the given prop is undefined */ (prop: T | undefined, initial: U): [U, React.Dispatch] | [T, () => undefined]; } declare const useProgressiveState: UseProgressiveState; export default useProgressiveState;