import * as React from 'react'; import { GraphQLSchema } from 'graphql'; import 'codemirror/addon/edit/matchbrackets'; import 'codemirror/addon/edit/closebrackets'; import 'codemirror-graphql/mode'; import 'codemirror/addon/hint/show-hint'; import 'codemirror/addon/lint/lint'; import 'codemirror-graphql/hint'; import 'codemirror-graphql/lint'; import 'codemirror-graphql/info'; interface Props { schema?: GraphQLSchema | null; closeEditor: () => void; saveQuery: () => void; isOpen: boolean; editor?: any; value?: any; changeValue?: any; clearQuery: any; } declare class QueryEditor extends React.Component { private editor; private node; private ignoreChangeEvent; private cachedValue; constructor(props: any); componentDidMount(): void; componentDidUpdate(prevProps: any): void; onHasCompletion: (cm: any, data: any) => void; lintMessage: (e: any) => void; render(): JSX.Element; componentWillUnmount(): void; private onEdit; private onKeyUp; } export default QueryEditor;