/** * @description * Provides access to the current FormControl value and a method to update the value. * * @example * ```ts * import { useFormControl, ReactFormInputProps } from '\@vendure/admin-ui/react'; * import React from 'react'; * * export function ReactNumberInput({ readonly }: ReactFormInputProps) { * const { value, setFormValue } = useFormControl(); * * const handleChange = (e: React.ChangeEvent) => { * setFormValue(val); * }; * return ( *
* *
* ); * } * ``` * * @docsCategory react-hooks */ export declare function useFormControl(): { value: any; setFormValue: (newValue: any) => void; };