import { Source } from '@graphql-tools/utils'; import { LoadTypedefsOptions, UnnormalizedTypeDefPointer } from './load-typedefs'; /** * Kinds of AST nodes that are included in executable documents */ export declare const OPERATION_KINDS: ("OperationDefinition" | "FragmentDefinition")[]; /** * Kinds of AST nodes that are included in type system definition documents */ export declare const NON_OPERATION_KINDS: any[]; /** * Asynchronously loads executable documents (i.e. operations and fragments) from * the provided pointers. The pointers may be individual files or a glob pattern. * The files themselves may be `.graphql` files or `.js` and `.ts` (in which * case they will be parsed using graphql-tag-pluck). * @param pointerOrPointers Pointers to the files to load the documents from * @param options Additional options */ export declare function loadDocuments(pointerOrPointers: UnnormalizedTypeDefPointer | UnnormalizedTypeDefPointer[], options: LoadTypedefsOptions): Promise; /** * Synchronously loads executable documents (i.e. operations and fragments) from * the provided pointers. The pointers may be individual files or a glob pattern. * The files themselves may be `.graphql` files or `.js` and `.ts` (in which * case they will be parsed using graphql-tag-pluck). * @param pointerOrPointers Pointers to the files to load the documents from * @param options Additional options */ export declare function loadDocumentsSync(pointerOrPointers: UnnormalizedTypeDefPointer | UnnormalizedTypeDefPointer[], options: LoadTypedefsOptions): Source[];