import CodeGenerator from "apollo-codegen-core/lib/utilities/CodeGenerator"; import { LegacyCompilerContext, LegacyOperation, LegacyFragment, LegacyField, LegacyInlineFragment } from "apollo-codegen-core/lib/compiler/legacyIR"; import { GraphQLType } from "graphql"; import { Property } from "./language"; import { GraphQLCompositeType } from "graphql"; export declare function generateSource(context: LegacyCompilerContext): string; export declare function classDeclarationForOperation(generator: CodeGenerator, { operationName, operationType, rootType, variables, fields, inlineFragments, fragmentSpreads, fragmentsReferenced, source, operationId }: LegacyOperation): void; export declare function traitDeclarationForFragment(generator: CodeGenerator, { fragmentName, typeCondition, fields, inlineFragments, fragmentSpreads, source }: LegacyFragment): void; export declare function traitDeclarationForSelectionSet(generator: CodeGenerator, { traitName, parentType, fields, inlineFragments, fragmentSpreads, viewableAs, parentFragments }: { traitName: string; parentType: GraphQLCompositeType; fields: LegacyField[]; inlineFragments?: LegacyInlineFragment[]; fragmentSpreads?: string[]; viewableAs?: { traitName: string; properties: (LegacyField & Property)[]; }; parentFragments?: string[]; }, objectClosure?: () => void): void; export declare function typeDeclarationForGraphQLType(generator: CodeGenerator, type: GraphQLType): void; //# sourceMappingURL=codeGeneration.d.ts.map