import { ControllerProps, FieldPath, FieldValues, FormProviderProps, FieldError } from 'react-hook-form'; import { Label } from './label'; import * as React from "react"; declare const Form: ({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: FormProviderProps) => React.JSX.Element; declare const FormField: = FieldPath>({ ...props }: ControllerProps) => React.JSX.Element; declare const useFormField: () => { invalid: boolean; isDirty: boolean; isTouched: boolean; isValidating: boolean; error?: FieldError; id: string; name: string; formItemId: string; formDescriptionId: string; formMessageId: string; }; declare function FormItem({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element; declare function FormLabel({ className, ...props }: React.ComponentProps): React.JSX.Element; declare function FormControl({ children }: { children?: React.ReactNode; }): React.ReactElement, string | React.JSXElementConstructor>; declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element; declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element | null; export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField, }; //# sourceMappingURL=form.d.ts.map