import React from 'react'; import { editor } from 'monaco-editor'; import 'monaco-editor/esm/vs/basic-languages/cypher/cypher.contribution'; export interface ItemSchema { label: string; properties: { name: string; type: 'string' | 'number'; }[]; primary: string; } export interface CypherSchemaData { nodes: ItemSchema[]; edges: (ItemSchema & { constraints: [[string, string]]; })[]; } export interface CypherEditorProps { maxRows?: number; minRows?: number; schemaData?: CypherSchemaData; functions?: { name: string; type: string; signatures: []; desc: string; }[]; onChangeContent?: (lineCount?: number, editor?: any) => void; } interface IEditor extends CypherEditorProps { value: string; language?: string; clear?: boolean; onInit?: (val: HTMLDivElement) => void; onCreated?: (val: editor.IStandaloneCodeEditor) => void; onChange?: (val: string) => void; } declare const Editor: React.ForwardRefExoticComponent>; export default Editor;