1 | import { FieldNode, SelectionNode, DirectiveNode, DocumentNode, ArgumentNode } from 'graphql';
|
2 | export declare type DirectiveInfo = {
|
3 | [fieldName: string]: {
|
4 | [argName: string]: any;
|
5 | };
|
6 | };
|
7 | export declare function getDirectiveInfoFromField(field: FieldNode, variables: Object): DirectiveInfo;
|
8 | export declare function shouldInclude(selection: SelectionNode, variables?: {
|
9 | [name: string]: any;
|
10 | }): boolean;
|
11 | export declare function getDirectiveNames(doc: DocumentNode): string[];
|
12 | export declare function hasDirectives(names: string[], doc: DocumentNode): boolean;
|
13 | export declare function hasClientExports(document: DocumentNode): boolean;
|
14 | export declare type InclusionDirectives = Array<{
|
15 | directive: DirectiveNode;
|
16 | ifArgument: ArgumentNode;
|
17 | }>;
|
18 | export declare function getInclusionDirectives(directives: ReadonlyArray<DirectiveNode>): InclusionDirectives;
|
19 |
|
\ | No newline at end of file |