///
import { AllowedHtmlElements, BaseTranslations, ValidationError } from './BaseInput';
import * as Validators from '../../../validators';
import { FormContextState } from '../../form/FormContext';
interface UseBaseInputProps {
value?: string;
required?: boolean;
validators?: string[];
customValidators?: Validators.IBaseValidator[];
onTheFlightValidate?: (value: string) => boolean;
onChange?: (event: React.ChangeEvent, isValid: boolean) => void;
onBlur?: () => void;
onFocus?: () => void;
errors?: ValidationError[];
infoText?: string;
touchOn?: 'focus' | 'blur';
showValidation?: boolean;
disabled?: boolean;
ignoreContext?: boolean;
formContext?: FormContextState;
translations?: TranslationsT;
validationName?: string;
label?: string | JSX.Element;
}
export declare function useBaseInput(props: UseBaseInputProps): {
value: string;
setValue: (newValue: string) => void;
isValid: boolean;
errors: ValidationError[];
touched: boolean;
focused: boolean;
inputRef: import("react").MutableRefObject;
containerRef: import("react").MutableRefObject;
handleFocus: () => void;
handleBlur: () => void;
scrollTo: () => void;
setValid: () => void;
setInvalid: (validationErrors?: ValidationError[]) => void;
disableComponent: () => void;
enableComponent: () => void;
setTouched: import("react").Dispatch>;
componentDisabled: boolean;
};
export {};