import * as React from "react"; import { CustomEditorControl } from "./EditorField"; import { EditorErrors } from "./createEditor"; export interface Field { field: keyof T; label?: string; type?: "text" | "number" | "date" | "boolean"; customControl?: CustomEditorControl; errors?: EditorErrors; readonly?: boolean; inline?: boolean; fluid?: boolean; style?: React.CSSProperties; disabled?: boolean; } export interface CreateFieldsOptions { item: T; changeHandler: (key: keyof T, value: any) => void; fields: Field[]; } export declare function createFields(opts: CreateFieldsOptions): JSX.Element;