1 | import { GraphQLType } from 'graphql';
|
2 | import type * as CM from 'codemirror';
|
3 | import React from 'react';
|
4 | declare type VariableEditorProps = {
|
5 | variableToType?: {
|
6 | [variable: string]: GraphQLType;
|
7 | };
|
8 | value?: string;
|
9 | onEdit: (value: string) => void;
|
10 | readOnly?: boolean;
|
11 | onHintInformationRender: (value: HTMLDivElement) => void;
|
12 | onPrettifyQuery: (value?: string) => void;
|
13 | onMergeQuery: (value?: string) => void;
|
14 | onRunQuery: (value?: string) => void;
|
15 | editorTheme?: string;
|
16 | active?: boolean;
|
17 | };
|
18 | export declare class VariableEditor extends React.Component<VariableEditorProps> {
|
19 | CodeMirror: any;
|
20 | editor: (CM.Editor & {
|
21 | options: any;
|
22 | showHint: any;
|
23 | }) | null;
|
24 | cachedValue: string;
|
25 | private _node;
|
26 | ignoreChangeEvent: boolean;
|
27 | constructor(props: VariableEditorProps);
|
28 | componentDidMount(): void;
|
29 | componentDidUpdate(prevProps: VariableEditorProps): void;
|
30 | componentWillUnmount(): void;
|
31 | render(): JSX.Element;
|
32 | getCodeMirror(): CM.Editor;
|
33 | getClientHeight(): number | null;
|
34 | private _onKeyUp;
|
35 | private _onEdit;
|
36 | private _onHasCompletion;
|
37 | }
|
38 | export {};
|
39 |
|
\ | No newline at end of file |