import { default as React } from 'react'; import { Slot } from '@radix-ui/react-slot'; import { ControllerProps, FieldPath, FieldValues, FormProvider } from 'react-hook-form'; type FormFieldContextValue = FieldPath> = { name: TName; }; /** * Carries the form-level disabled state so FieldControl can inject * `disabled` onto inputs without prop-drilling. * Default is `{ disabled: false }` — safe when FieldControl is used outside a Form. */ type FormStateContextValue = { /** True when the Form is explicitly disabled or in a loading state */ disabled: boolean; }; declare const FormStateContext: React.Context; declare const FormFieldContext: React.Context>; declare const FormField: { = FieldPath>({ ...props }: ControllerProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; type FormItemContextValue = { id: string; }; declare const FormItemContext: React.Context; declare const FormItem: React.FC & React.RefAttributes>; declare const FormControl: React.FC>; export { FormProvider, FormFieldContext, FormItemContext, FormItem, FormControl, FormField, FormStateContext };