import { FieldProps } from "react-final-form"; import React from "react"; import { StackProps } from "../../UI/Stack"; import { InputProps } from "./Input"; export interface EnhancerProps extends Partial> { name: string; label: React.ReactNode; labelHidden?: boolean; alignment?: StackProps["alignment"]; distribution?: StackProps["distribution"]; helpText?: React.ReactNode; inline?: boolean; required?: boolean; valueAdapter?: (value: any) => any; onChangeAdapter?: (value: any) => any; validate?: (value: any) => string | undefined | Promise; wrapper?: boolean; size?: InputProps["size"]; } export default function enhancer

(Component: any, changeAdapter: (e: any) => any): (props: EnhancerProps

& Omit) => JSX.Element;