import * as React from "react"; import { Controller, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch, type Control, type ControllerFieldState, type ControllerProps, type ControllerRenderProps, type DefaultValues, type FieldError, type FieldErrors, type FieldPath, type FieldValues, type Path, type RegisterOptions, type Resolver, type SubmitHandler, type UseControllerReturn, type UseFieldArrayReturn, type UseFormReturn } from "react-hook-form"; /** * Provides the `react-hook-form` context to nested form primitives. * * @remarks * - Renders the `FormProvider` component from `react-hook-form` * - Built on `react-hook-form` * * @example * ```tsx *
* ...
* * ``` * * @see {@link https://react-hook-form.com/docs/formprovider | React Hook Form FormProvider Docs} */ declare const Form: (({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe, }: import("react-hook-form").FormProviderProps) => React.JSX.Element) & { displayName: string; }; interface FormControlProps extends Omit, "children"> { /** * Single form control element or fallback content to receive field accessibility attributes. * @default undefined */ children: React.ReactNode; } /** * Binds a single field name to the shared form field context. * * @remarks * - Renders the `Controller` component from `react-hook-form` * - Built on `react-hook-form` controller primitives * * @example * ```tsx * } * /> * ``` * * @see {@link https://react-hook-form.com/docs/usecontroller/controller | React Hook Form Controller Docs} */ declare const FormField: { = FieldPath>({ ...props }: ControllerProps): React.JSX.Element; displayName: string; }; type UseFormFieldReturn = { id: string; name: FieldPath; formItemId: string; formDescriptionId: string; formMessageId: string; invalid: boolean; isDirty: boolean; isTouched: boolean; isValidating: boolean; error?: ReturnType["getFieldState"]>["error"]; }; /** * Returns the resolved form field metadata for nested form primitives. * * @remarks * Reads the nearest {@link FormField} and {@link FormItem} contexts, then combines them * with `react-hook-form` field state to expose stable IDs and validation metadata. * * @example * ```tsx * const field = useFormField(); * ``` * * @see {@link https://react-hook-form.com/docs/useformcontext | React Hook Form useFormContext Docs} */ declare const useFormField: () => UseFormFieldReturn; /** * Wraps a label, control, description, and message into a single form item. * * @remarks * - Renders a `
` element * - Built on the shared form item context * * @example * ```tsx * * Email * * ``` * * @see {@link https://react-hook-form.com/docs/useformcontext | React Hook Form Docs} */ declare const FormItem: React.ForwardRefExoticComponent & React.RefAttributes>; /** * Renders the accessible label for the current form item. * * @remarks * - Renders a `