1 | import { DocumentNode, VariableDefinitionNode } from 'graphql';
|
2 | export declare enum DocumentType {
|
3 | Query = 0,
|
4 | Mutation = 1,
|
5 | Subscription = 2
|
6 | }
|
7 | export interface IDocumentDefinition {
|
8 | type: DocumentType;
|
9 | name: string;
|
10 | variables: ReadonlyArray<VariableDefinitionNode>;
|
11 | }
|
12 | export declare function operationName(type: DocumentType): string;
|
13 | export declare function parser(document: DocumentNode): IDocumentDefinition;
|
14 | export declare function verifyDocumentType(document: DocumentNode, type: DocumentType): void;
|
15 |
|
\ | No newline at end of file |