import { type FieldProps } from "formik"; import type { HTMLProps, ReactElement, ReactNode } from "react"; import type { IFieldInputPropsEnhanced } from "./FormFieldInput"; import type { IRenderFormField } from "./RenderFormField"; export type IFormFieldValue = string; export type IFieldElementProps = HTMLProps> = FieldProps & { children?: FieldProps["children"] | ((props: FieldProps) => FieldProps["children"]); label?: ReactNode | string; }; export type IFormFieldPropsEnhanced = FieldProps & { error?: string; isValid: boolean; isInvalid: boolean; field: IFieldInputPropsEnhanced; }; export type IFormFieldProps = FieldElementProps & { render?: IRenderFormField; fastField?: boolean; }; export declare function FormField({ render, fastField, autoFocus, as, ...props }: IFormFieldProps): ReactElement;