import { Source } from '@graphql-tools/utils'; import { Kind } from 'graphql'; import { LoadTypedefsOptions, UnnormalizedTypeDefPointer } from './load-typedefs'; declare type KindList = Array; /** * Kinds of AST nodes that are included in executable documents */ export declare const OPERATION_KINDS: KindList; /** * Kinds of AST nodes that are included in type system definition documents */ export declare const NON_OPERATION_KINDS: ("InputObjectTypeExtension" | "Document" | "OperationDefinition" | "FragmentDefinition" | "SchemaDefinition" | "ScalarTypeDefinition" | "ObjectTypeDefinition" | "InterfaceTypeDefinition" | "UnionTypeDefinition" | "EnumTypeDefinition" | "InputObjectTypeDefinition" | "DirectiveDefinition" | "SchemaExtension" | "ScalarTypeExtension" | "ObjectTypeExtension" | "InterfaceTypeExtension" | "UnionTypeExtension" | "EnumTypeExtension" | "FieldDefinition" | "EnumValueDefinition" | "SelectionSet" | "Field" | "FragmentSpread" | "InlineFragment" | "Name" | "InputValueDefinition" | "VariableDefinition" | "Variable" | "Argument" | "IntValue" | "FloatValue" | "StringValue" | "BooleanValue" | "NullValue" | "EnumValue" | "ListValue" | "ObjectValue" | "ObjectField" | "Directive" | "NamedType" | "ListType" | "NonNullType" | "OperationTypeDefinition")[]; /** * 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[]; export {};