import type { FieldValues, UseFormReturn } from '../types'; /** * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}. * * @remarks * [API](https://reacty-form.com/docs/useformcontext) * * @returns return all useForm methods * * @example * ```tsx * function App() { * const form = useForm(); * const onSubmit = data => console.log(data); * * return ( * *
* * * *
* ); * } * * function NestedInput() { * const { register } = useFormContext(); // retrieve all hook methods * return ; * } * ``` */ export declare function useFormContext(): UseFormReturn; //# sourceMappingURL=use-form-context.hook.d.ts.map