import type { FieldArray as FieldArrayType, FieldArrayPath, FieldArrayProps, FieldValues } from './types'; type FieldArray = FieldArrayPath> = FieldArrayType; /** * Component based on `useFieldArray` hook to work with controlled component. * * @example * ```tsx * function App() { * const { control, register } = useForm({ * defaultValues: { * test: [ * { * value: '', * }, * ], * }, * }); * * return ( *
* * fields.map((field, index) => ( * * )) * } * /> * * ); * } * ``` */ declare const FieldArray: = FieldArrayPath, TKeyName extends string = "id">(props: FieldArrayProps) => import("react").ReactElement>; export { FieldArray }; //# sourceMappingURL=fieldArray.d.ts.map