1 | import { FragmentDefinitionNode, GraphQLDirective, GraphQLSchema } from 'graphql';
|
2 | import { CompletionItem, AllTypeInfo, IPosition } from 'graphql-language-service-types';
|
3 | import { CharacterStream, ContextToken, State, ContextTokenForCodeMirror } from 'graphql-language-service-parser';
|
4 | export declare const SuggestionCommand: {
|
5 | command: string;
|
6 | title: string;
|
7 | };
|
8 | export declare type AutocompleteSuggestionOptions = {
|
9 | fillLeafsOnComplete?: boolean;
|
10 | schema?: GraphQLSchema;
|
11 | };
|
12 | export declare function getAutocompleteSuggestions(schema: GraphQLSchema, queryText: string, cursor: IPosition, contextToken?: ContextTokenForCodeMirror, fragmentDefs?: FragmentDefinitionNode[] | string, options?: AutocompleteSuggestionOptions): Array<CompletionItem>;
|
13 | export declare function getVariableCompletions(queryText: string, schema: GraphQLSchema, token: ContextToken): CompletionItem[];
|
14 | export declare function getFragmentDefinitions(queryText: string): Array<FragmentDefinitionNode>;
|
15 | export declare function getTokenAtPosition(queryText: string, cursor: IPosition): ContextToken;
|
16 | declare type callbackFnType = (stream: CharacterStream, state: State, style: string, index: number) => void | 'BREAK';
|
17 | export declare function runOnlineParser(queryText: string, callback: callbackFnType): ContextToken;
|
18 | export declare function canUseDirective(state: State['prevState'], directive: GraphQLDirective): boolean;
|
19 | export declare function getTypeInfo(schema: GraphQLSchema, tokenState: State): AllTypeInfo;
|
20 | export {};
|
21 |
|
\ | No newline at end of file |