/// import { DropdownOption } from "./DropdownSelect"; /** * Defines the attribues for a form field. * * @param validation - A function that validates the string value of the user input. Returns an * error message if validation fails, returns void if the value is accepted. */ export declare type FormField = { type?: string; label?: string; placeholder?: string; initialValue?: string; validation?: (v: string) => string | undefined; required?: boolean; options?: DropdownOption[]; onChange?: (v: string) => void; }; export declare type FormFields = { [key: string]: FormField; }; declare type Props = { onSubmit?: (e: any) => void; fields: FormFields; buttonName?: string; preventDefault?: boolean; action?: string; method?: string; }; export default function FormCreator({ onSubmit, fields, buttonName, preventDefault, action, method, }: Props): JSX.Element; export {};