import { ComponentPropsWithoutRef, ElementType, ReactElement } from 'react'; import { FormatFunction, ParseFunction } from '../useForm'; export type FieldProps = ComponentPropsWithoutRef & { /** * The custom component to render. */ component?: C; /** * The default value (uncontrolled mode). */ defaultValue?: T; /** * Disables the field. */ disabled?: boolean; /** * The format function to call before displaying the value. */ formatter?: FormatFunction | null | false; /** * The name of the field. */ name: string; /** * The parse function to call when the value is modified. */ parser?: ParseFunction; /** * Makes the field mandatory. */ required?: boolean; /** * The value (controlled mode). */ value?: T; }; declare function Field(props: FieldProps): ReactElement; export default Field; //# sourceMappingURL=Field.d.ts.map