1 | import { FragmentDefinitionNode, GraphQLDirective, GraphQLSchema } from 'graphql';
|
2 | import { CompletionItem, AllTypeInfo, Position } from 'graphql-language-service-types';
|
3 | import { CharacterStream, ContextToken, State } from 'graphql-language-service-parser';
|
4 | export declare function getAutocompleteSuggestions(schema: GraphQLSchema, queryText: string, cursor: Position, contextToken?: ContextToken, fragmentDefs?: FragmentDefinitionNode[]): Array<CompletionItem>;
|
5 | export declare function getFragmentDefinitions(queryText: string): Array<FragmentDefinitionNode>;
|
6 | export declare function getTokenAtPosition(queryText: string, cursor: Position): ContextToken;
|
7 | declare type callbackFnType = (stream: CharacterStream, state: State, style: string, index: number) => void | 'BREAK';
|
8 | export declare function runOnlineParser(queryText: string, callback: callbackFnType): ContextToken;
|
9 | export declare function canUseDirective(state: State['prevState'], directive: GraphQLDirective): boolean;
|
10 | export declare function getTypeInfo(schema: GraphQLSchema, tokenState: State): AllTypeInfo;
|
11 | export {};
|
12 |
|
\ | No newline at end of file |