1 | import type { Maybe } from '../jsutils/Maybe';
|
2 | import type { ObjMap } from '../jsutils/ObjMap';
|
3 | import { GraphQLError } from '../error/GraphQLError';
|
4 | import type {
|
5 | DirectiveNode,
|
6 | FieldNode,
|
7 | VariableDefinitionNode,
|
8 | } from '../language/ast';
|
9 | import type { GraphQLField } from '../type/definition';
|
10 | import type { GraphQLDirective } from '../type/directives';
|
11 | import type { GraphQLSchema } from '../type/schema';
|
12 | declare type CoercedVariableValues =
|
13 | | {
|
14 | errors: ReadonlyArray<GraphQLError>;
|
15 | coerced?: never;
|
16 | }
|
17 | | {
|
18 | coerced: {
|
19 | [variable: string]: unknown;
|
20 | };
|
21 | errors?: never;
|
22 | };
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare function getVariableValues(
|
33 | schema: GraphQLSchema,
|
34 | varDefNodes: ReadonlyArray<VariableDefinitionNode>,
|
35 | inputs: {
|
36 | readonly [variable: string]: unknown;
|
37 | },
|
38 | options?: {
|
39 | maxErrors?: number;
|
40 | },
|
41 | ): CoercedVariableValues;
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | export declare function getArgumentValues(
|
51 | def: GraphQLField<unknown, unknown> | GraphQLDirective,
|
52 | node: FieldNode | DirectiveNode,
|
53 | variableValues?: Maybe<ObjMap<unknown>>,
|
54 | ): {
|
55 | [argument: string]: unknown;
|
56 | };
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 | export declare function getDirectiveValues(
|
69 | directiveDef: GraphQLDirective,
|
70 | node: {
|
71 | readonly directives?: ReadonlyArray<DirectiveNode>;
|
72 | },
|
73 | variableValues?: Maybe<ObjMap<unknown>>,
|
74 | ):
|
75 | | undefined
|
76 | | {
|
77 | [argument: string]: unknown;
|
78 | };
|
79 | export {};
|