import { Dispatch } from "react"; import { InputAction, InputState } from "./reducer"; import { InputProps } from "./types"; /** * useInput is a hook that generates props for an input component. */ export declare const useInput: , TOnChange>(props: InputProps, state: TState, dispatch: Dispatch>, getChangeValue: (v: TOnChange) => TValue) => { inputProps: { error: string | undefined; onChange: (v: TOnChange) => void; value: TValue | undefined; disabled: boolean; }; };