1 | import { Source } from '@graphql-tools/utils';
|
2 | import { LoadTypedefsOptions, UnnormalizedTypeDefPointer } from './load-typedefs';
|
3 | /**
|
4 | * Kinds of AST nodes that are included in executable documents
|
5 | */
|
6 | export declare const OPERATION_KINDS: ("OperationDefinition" | "FragmentDefinition")[];
|
7 | /**
|
8 | * Kinds of AST nodes that are included in type system definition documents
|
9 | */
|
10 | export declare const NON_OPERATION_KINDS: any[];
|
11 | /**
|
12 | * Asynchronously loads executable documents (i.e. operations and fragments) from
|
13 | * the provided pointers. The pointers may be individual files or a glob pattern.
|
14 | * The files themselves may be `.graphql` files or `.js` and `.ts` (in which
|
15 | * case they will be parsed using graphql-tag-pluck).
|
16 | * @param pointerOrPointers Pointers to the files to load the documents from
|
17 | * @param options Additional options
|
18 | */
|
19 | export declare function loadDocuments(pointerOrPointers: UnnormalizedTypeDefPointer | UnnormalizedTypeDefPointer[], options: LoadTypedefsOptions): Promise<Source[]>;
|
20 | /**
|
21 | * Synchronously loads executable documents (i.e. operations and fragments) from
|
22 | * the provided pointers. The pointers may be individual files or a glob pattern.
|
23 | * The files themselves may be `.graphql` files or `.js` and `.ts` (in which
|
24 | * case they will be parsed using graphql-tag-pluck).
|
25 | * @param pointerOrPointers Pointers to the files to load the documents from
|
26 | * @param options Additional options
|
27 | */
|
28 | export declare function loadDocumentsSync(pointerOrPointers: UnnormalizedTypeDefPointer | UnnormalizedTypeDefPointer[], options: LoadTypedefsOptions): Source[];
|