import { FieldId, FieldValue, UseFieldResult } from "@zerry/react-formz-core"; /** * Custom hook that will optionally mange a fields value internally within the hook * rather than sending the value to the form store. When using array fields, setting the * value on the form store cause the enitre list to re-render on every keystroke * which will cause the keyboard to disappear. * * As a workaround, for fields rendered within an `ArrayField` the value * will be updated using `setState` and then synced to the store **after** * the user finishes typing or submits the form. * * @param name The field name * @param field The result from the `useField` hook. */ declare function useInternalFieldValue(name: Key, field: UseFieldResult): { handleChange: (value: Value) => void; handleBlur: () => void; handleFinishEditing: () => void; value: Value; }; export default useInternalFieldValue; //# sourceMappingURL=useInternalFieldValue.d.ts.map