import * as React from "react"; import { EditorProps } from "./createEditor"; import { Field } from "./createFields"; export interface StandardEditorProps extends EditorProps { title: string; fields: Field[]; } export declare function createStandardEditor(title: string, newItem: () => T, getItem: (id: string) => Promise, saveItem: (item: T) => Promise, options: { validate?: (item: T) => { [fieldName: string]: string; }; onValueChanged?: (name: keyof T, value: any) => void; }, fields: Field[]): { new (props: import("./createEditor").CreateEditorProps): { _isMounted: boolean; componentDidMount(): Promise; componentWillUnmount(): void; onChangeValues: (value: Partial) => void; onChangeValue: (name: keyof T, value: any) => void; onCancel: () => void; onSave: () => Promise; render(): JSX.Element | null; context: any; setState(state: import("./createEditor").CreateEditorState | ((prevState: Readonly>, props: Readonly>) => import("./createEditor").CreateEditorState | Pick, K> | null) | Pick, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callBack?: (() => void) | undefined): void; readonly props: Readonly> & Readonly<{ children?: React.ReactNode; }>; state: Readonly>; refs: { [key: string]: React.ReactInstance; }; }; contextType?: React.Context | undefined; };