import * as React from 'react'; import { EditorErrors } from './createEditor'; export declare type CustomEditorControlProps = { value?: T; onChange: (item: T) => void; }; export declare type CustomEditorControl = (props: CustomEditorControlProps) => JSX.Element; export declare type CrudFieldPropsForEditor = { customControl?: CustomEditorControl; label?: string; type?: 'text' | 'number' | 'date' | 'boolean'; inline?: boolean; readonly?: boolean; }; export declare type EditorFieldProps = CrudFieldPropsForEditor & { item: T; field: keyof T; onChange: (key: keyof T, value: any) => void; errors?: EditorErrors; children?: React.ReactNode; fluid?: boolean; style?: React.CSSProperties; disabled?: boolean; }; export declare function EditorField(props: EditorFieldProps): JSX.Element;