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