import type { GraphQLSchema, DocumentNode } from 'graphql'; import type { Source } from '@graphql-tools/utils'; import { LoadSchemaOptions as ToolsLoadSchemaOptions, LoadTypedefsOptions as ToolsLoadTypedefsOptions, UnnormalizedTypeDefPointer } from '@graphql-tools/load'; import type { GraphQLExtensionsRegistry } from './extension.cjs'; import type { IExtensions, IGraphQLProject, IGraphQLProjectLegacy, WithList } from './types.cjs'; declare type Pointer = UnnormalizedTypeDefPointer | UnnormalizedTypeDefPointer[]; declare type LoadTypedefsOptions = Partial; declare type LoadSchemaOptions = Partial; export declare class GraphQLProjectConfig { readonly schema: Pointer; readonly documents?: UnnormalizedTypeDefPointer | UnnormalizedTypeDefPointer[]; readonly include?: WithList; readonly exclude?: WithList; readonly extensions: IExtensions; readonly filepath: string; readonly dirpath: string; readonly name: string; readonly isLegacy: boolean; private readonly _extensionsRegistry; constructor({ filepath, name, config, extensionsRegistry, }: { filepath: string; name: string; config: IGraphQLProject | IGraphQLProjectLegacy; extensionsRegistry: GraphQLExtensionsRegistry; }); hasExtension(name: string): boolean; extension(name: string): T; getSchema(): Promise; getSchema(out: 'DocumentNode'): Promise; getSchema(out: 'GraphQLSchema'): Promise; getSchema(out: 'string'): Promise; getSchemaSync(): GraphQLSchema; getSchemaSync(out: 'DocumentNode'): DocumentNode; getSchemaSync(out: 'GraphQLSchema'): GraphQLSchema; getSchemaSync(out: 'string'): string; getDocuments(): Promise; getDocumentsSync(): Source[]; loadSchema(pointer: Pointer): Promise; loadSchema(pointer: Pointer, out: 'string', options?: LoadSchemaOptions): Promise; loadSchema(pointer: Pointer, out: 'DocumentNode', options?: LoadSchemaOptions): Promise; loadSchema(pointer: Pointer, out: 'GraphQLSchema', options?: LoadSchemaOptions): Promise; loadSchemaSync(pointer: Pointer): GraphQLSchema; loadSchemaSync(pointer: Pointer, out: 'string', options?: LoadSchemaOptions): GraphQLSchema; loadSchemaSync(pointer: Pointer, out: 'DocumentNode', options?: LoadSchemaOptions): DocumentNode; loadSchemaSync(pointer: Pointer, out: 'GraphQLSchema', options?: LoadSchemaOptions): GraphQLSchema; loadDocuments(pointer: Pointer, options?: LoadTypedefsOptions): Promise; loadDocumentsSync(pointer: Pointer, options?: LoadTypedefsOptions): Source[]; match(filepath: string): boolean; } export {}; //# sourceMappingURL=project-config.d.ts.map