1 | import { Source, UniversalLoader, DocumentPointerSingle, SchemaPointerSingle, SingleFileOptions } from '@graphql-tools/utils';
|
2 |
|
3 |
|
4 |
|
5 | export interface GraphQLFileLoaderOptions extends SingleFileOptions {
|
6 | |
7 |
|
8 |
|
9 | skipGraphQLImport?: boolean;
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | export declare class GraphQLFileLoader implements UniversalLoader<GraphQLFileLoaderOptions> {
|
35 | loaderId(): string;
|
36 | canLoad(pointer: SchemaPointerSingle | DocumentPointerSingle, options: GraphQLFileLoaderOptions): Promise<boolean>;
|
37 | canLoadSync(pointer: SchemaPointerSingle | DocumentPointerSingle, options: GraphQLFileLoaderOptions): boolean;
|
38 | load(pointer: SchemaPointerSingle | DocumentPointerSingle, options: GraphQLFileLoaderOptions): Promise<Source>;
|
39 | loadSync(pointer: SchemaPointerSingle | DocumentPointerSingle, options: GraphQLFileLoaderOptions): Source;
|
40 | handleFileContent(rawSDL: string, pointer: string, options: GraphQLFileLoaderOptions): {
|
41 | location: string;
|
42 | document: import("graphql").DocumentNode;
|
43 | rawSDL: string;
|
44 | } | {
|
45 | location: string;
|
46 | document: {
|
47 | definitions: import("graphql").DefinitionNode[];
|
48 | kind: "Document";
|
49 | loc?: import("graphql").Location;
|
50 | };
|
51 | };
|
52 | }
|