import type { Options, Schema, Type, Field } from './types'; export type CodeBlockType = 'operation' | 'built-in' | 'scalar' | 'enum' | 'union' | 'type' | 'input' | 'args' | 'possible-types' | 'fields' | 'factory'; export interface Operation { field: Field; argsType: string; returnType: string; } export declare class Context { readonly schema: Schema; readonly options: Options; readonly queryType: Type | null; readonly mutationType: Type | null; readonly identifiers: Record; readonly processedTypes: Record; readonly processedFields: Record; readonly possibleTypes: Record; readonly unmappedScalars: string[]; readonly operations: Record; private readonly codeBlocks; constructor(schema: Schema, options: Options); getIndent(level: number): string; indent(level: number, line: string): string; /** * Generate a safe type name. * * @example * // Return `UserFriendsArgs` if it is not used before, * // Otherwise `UserFriendsArgs1` will be returned. * ctx.getSafeTypeName('user', 'friends', 'args') */ getSafeTypeName(...words: string[]): string; getNamedType(type: Type): Type | null | undefined; generateComment({ description, indentLevel, isDeprecated, deprecationReason, defaultValue }: { description?: string | null; indentLevel?: number | null; isDeprecated?: boolean | null; deprecationReason?: string | null; defaultValue?: string | null; }): string; addCode(blockType: CodeBlockType, name: string, code: string): void; getCode(): string; getScalarType(typeName: string): string; skipWrappingEnum(): boolean | undefined; getTypeName(typeName?: string): string; }