import { View, TextInput } from 'react-native'; import { Field, IFieldRef } from '@codeleap/form'; import { AnyRecord } from '@codeleap/types'; /** * When both `value` and `onValueChange` are provided, the component runs in uncontrolled-by-form * mode: `useField` is never called and the field ref (blur/focus/scrollIntoView) is a no-op stub. * This check is frozen on mount — toggling between controlled and uncontrolled after mount is unsupported. */ export declare function useInputBase = Field>(field: T, defaultField: ((options?: AnyRecord) => T) | undefined, internalState: { value: V; onValueChange: (value: V) => void; }, params?: Partial>, deps?: any[]): { fieldHandle: Partial<{ validation: { onInputBlurred(): void; hasBlurred: boolean; hasChanged: boolean; startedUnset: boolean; isSet: boolean; isInvalid: boolean; isValid: boolean; message: any; showError: boolean; isUnset: boolean; validation: import("@codeleap/form").ValidationResult; value: unknown; }; value: unknown; setValue: (to: unknown) => void; changed: boolean; representation: any; options: import("@codeleap/form").FieldOptions; }> | ReturnType; validation: { onInputBlurred(): void; hasBlurred: boolean; hasChanged: boolean; startedUnset: boolean; isSet: boolean; isInvalid: boolean; isValid: boolean; message: any; showError: boolean; isUnset: boolean; validation: import("@codeleap/form").ValidationResult; value: V | import("nanostores").StoreValue : never>; } | { onInputBlurred(): void; hasBlurred: boolean; hasChanged: boolean; startedUnset: boolean; isSet: boolean; isInvalid: boolean; isValid: boolean; message: any; showError: boolean; isUnset: boolean; validation: import("@codeleap/form").ValidationResult; value: unknown; } | undefined; wrapperRef: import("react").RefObject; innerInputRef: import("react").RefObject; scrollable: { current: import("../../modules/scroll").Scrollable; }; inputValue: V; onInputValueChange: ((value: V) => void) | undefined; }; //# sourceMappingURL=useInputBase.d.ts.map