import { DocumentNode, GraphQLSchema } from "graphql"; import { DiagnosticsWithoutLocationResult } from "./utils/DiagnosticError.js"; import * as ts from "typescript"; import { ParsedCommandLineGrats } from "./gratsConfig.js"; import { Metadata } from "./metadata.js"; export { initTsPlugin } from "./tsPlugin/initTsPlugin.js"; export type { GratsConfig } from "./gratsConfig.js"; export type SchemaAndDoc = { schema: GraphQLSchema; doc: DocumentNode; resolvers: Metadata; }; export declare function buildSchemaAndDocResult(options: ParsedCommandLineGrats): DiagnosticsWithoutLocationResult; export declare function buildSchemaAndDocResultWithHost(options: ParsedCommandLineGrats, compilerHost: ts.CompilerHost): DiagnosticsWithoutLocationResult; /** * The core transformation pipeline of Grats. * * To keep the Grats codebase clean and maintainable, we've broken the * implementation into a series of transformations that each perform a small, * well-defined task. * * This function orchestrates the transformations and, as such, gives a good * high-level overview of how Grats works. */ export declare function extractSchemaAndDoc(options: ParsedCommandLineGrats, program: ts.Program): DiagnosticsWithoutLocationResult;