import { GraphQLSchema } from "graphql"; import { SchemaGeneratorOptions } from "../schema/schema-generator"; import { PrintSchemaOptions } from "./emitSchemaDefinitionFile"; import { NonEmptyArray } from "../interfaces/NonEmptyArray"; interface EmitSchemaFileOptions extends Partial { path?: string; } export interface BuildSchemaOptions extends Omit { /** Array of resolvers classes or glob paths to resolver files */ resolvers: NonEmptyArray | NonEmptyArray; /** * Path to the file to where emit the schema * or config object with print schema options * or `true` for the default `./schema.gql` one */ emitSchemaFile?: string | boolean | EmitSchemaFileOptions; } export declare function buildSchema(options: BuildSchemaOptions): Promise; export declare function buildSchemaSync(options: BuildSchemaOptions): GraphQLSchema; export {};