import type { DocumentNode, ScalarTypeDefinitionNode, ObjectTypeDefinitionNode, InterfaceTypeDefinitionNode, UnionTypeDefinitionNode, SchemaDefinitionNode, DirectiveDefinitionNode, TypeNode, NamedTypeNode, DirectiveNode, InputValueDefinitionNode, EnumTypeDefinitionNode, InputObjectTypeDefinitionNode, DefinitionNode, ObjectTypeExtensionNode, InputObjectTypeExtensionNode, InterfaceTypeExtensionNode, UnionTypeExtensionNode, EnumTypeExtensionNode, ScalarTypeExtensionNode, StringValueNode, Location } from 'graphql/language/ast'; import { GraphQLDirective } from './graphql'; import type { GraphQLType } from './graphql'; import type { InputTypeComposerFieldConfigMap, InputTypeComposerFieldConfigMapDefinition, InputTypeComposerFieldConfig, InputTypeComposerFieldConfigDefinition } from './InputTypeComposer'; import type { ObjectTypeComposerFieldConfig, ObjectTypeComposerFieldConfigDefinition, ObjectTypeComposerFieldConfigMap, ObjectTypeComposerFieldConfigMapDefinition, ObjectTypeComposerArgumentConfig, ObjectTypeComposerArgumentConfigDefinition, ObjectTypeComposerArgumentConfigMap, ObjectTypeComposerArgumentConfigMapDefinition, ObjectTypeComposerDefinition } from './ObjectTypeComposer'; import { ObjectTypeComposer } from './ObjectTypeComposer'; import type { SchemaComposer } from './SchemaComposer'; import { InputTypeComposer } from './InputTypeComposer'; import { ScalarTypeComposer } from './ScalarTypeComposer'; import { EnumTypeComposer, EnumTypeComposerValueConfigMapDefinition } from './EnumTypeComposer'; import { InterfaceTypeComposer, InterfaceTypeComposerDefinition, InterfaceTypeComposerThunked } from './InterfaceTypeComposer'; import { UnionTypeComposer } from './UnionTypeComposer'; import { Resolver } from './Resolver'; import { TypeStorage } from './TypeStorage'; import type { ThunkWithSchemaComposer, Directive } from './utils/definitions'; import { AnyTypeComposer, ComposeOutputType, ComposeOutputTypeDefinition, ComposeInputType, ComposeInputTypeDefinition, NamedTypeComposer } from './utils/typeHelpers'; export declare type TypeDefinitionString = string; export declare type TypeWrappedString = string; export declare type TypeNameString = string; export declare type TypeAsString = TypeDefinitionString | TypeWrappedString | TypeNameString; export declare class TypeMapper { schemaComposer: SchemaComposer; constructor(schemaComposer: SchemaComposer); static isOutputType(type: unknown): boolean; static isInputType(type: unknown): boolean; static isTypeNameString(str: string): boolean; static isTypeDefinitionString(str: string): boolean; static isOutputTypeDefinitionString(str: string): boolean; static isInputTypeDefinitionString(str: string): boolean; static isEnumTypeDefinitionString(str: string): boolean; static isScalarTypeDefinitionString(str: string): boolean; static isInterfaceTypeDefinitionString(str: string): boolean; static isUnionTypeDefinitionString(str: string): boolean; convertGraphQLTypeToComposer(type: GraphQLType): AnyTypeComposer; convertSDLWrappedTypeName(str: TypeWrappedString | TypeNameString): AnyTypeComposer; convertSDLTypeDefinition(str: TypeDefinitionString): NamedTypeComposer | void; convertOutputTypeDefinition(typeDef: ThunkWithSchemaComposer | ObjectTypeComposerDefinition | Readonly>, SchemaComposer>, fieldName?: string, typeName?: string): ComposeOutputType | void; convertOutputFieldConfig(composeFC: ObjectTypeComposerFieldConfigDefinition | Readonly>, fieldName?: string, typeName?: string): ObjectTypeComposerFieldConfig; convertOutputFieldConfigMap(composeFields: ObjectTypeComposerFieldConfigMapDefinition, typeName?: string): ObjectTypeComposerFieldConfigMap; convertArgConfig(composeAC: ObjectTypeComposerArgumentConfigDefinition, argName?: string, fieldName?: string, typeName?: string): ObjectTypeComposerArgumentConfig; convertArgConfigMap(composeArgsConfigMap: ObjectTypeComposerArgumentConfigMapDefinition, fieldName?: string, typeName?: string): ObjectTypeComposerArgumentConfigMap; convertInputTypeDefinition(typeDef: ThunkWithSchemaComposer>, fieldName?: string, typeName?: string): ComposeInputType | void; convertInputFieldConfig(composeIFC: InputTypeComposerFieldConfigDefinition, fieldName?: string, typeName?: string): InputTypeComposerFieldConfig; convertInputFieldConfigMap(composeFields: InputTypeComposerFieldConfigMapDefinition, typeName?: string): InputTypeComposerFieldConfigMap; convertInterfaceTypeDefinition(typeDef: InterfaceTypeComposerDefinition): InterfaceTypeComposerThunked; parseTypesFromString(str: string): TypeStorage>; parseTypes(astDocument: DocumentNode): Array>; typeFromAST(typeNode: TypeNode): AnyTypeComposer; typeFromASTInput(typeNode: TypeNode): ComposeInputType; typeFromASTOutput(typeNode: TypeNode): ComposeOutputType; makeSchemaDef(def: DefinitionNode): NamedTypeComposer | null; makeArguments(values?: ReadonlyArray): ObjectTypeComposerArgumentConfigMap; makeFieldDefMap(def: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode | ObjectTypeExtensionNode | InterfaceTypeExtensionNode): ObjectTypeComposerFieldConfigMap; makeInputFieldDef(def: InputObjectTypeDefinitionNode | InputObjectTypeExtensionNode): InputTypeComposerFieldConfigMapDefinition; makeEnumDef(def: EnumTypeDefinitionNode): EnumTypeComposer; makeEnumValuesDef(def: EnumTypeDefinitionNode | EnumTypeExtensionNode): EnumTypeComposerValueConfigMapDefinition; makeInputObjectDef(def: InputObjectTypeDefinitionNode): InputTypeComposer; makeDirectiveDef(def: DirectiveDefinitionNode): GraphQLDirective; getBuiltInType(name: string): ScalarTypeComposer | undefined; makeScalarDef(def: ScalarTypeDefinitionNode): ScalarTypeComposer; makeImplementedInterfaces(def: ObjectTypeDefinitionNode | ObjectTypeExtensionNode | InterfaceTypeDefinitionNode | InterfaceTypeExtensionNode): Array>; makeTypeDef(def: ObjectTypeDefinitionNode): ObjectTypeComposer; makeInterfaceDef(def: InterfaceTypeDefinitionNode): InterfaceTypeComposer; makeUnionDef(def: UnionTypeDefinitionNode): UnionTypeComposer; checkSchemaDef(def: SchemaDefinitionNode): void; getNamedTypeAST(typeAST: TypeNode): NamedTypeNode; buildWrappedTypeDef(innerType: AnyTypeComposer, inputTypeAST: TypeNode): AnyTypeComposer; getDeprecationReason(directives: ReadonlyArray | undefined): string | undefined; parseDirectives(directives: ReadonlyArray | undefined): Array; makeExtendTypeDef(def: ObjectTypeExtensionNode): ObjectTypeComposer; makeExtendInputObjectDef(def: InputObjectTypeExtensionNode): InputTypeComposer; makeExtendInterfaceDef(def: InterfaceTypeExtensionNode): InterfaceTypeComposer; makeExtendUnionDef(def: UnionTypeExtensionNode): UnionTypeComposer; makeExtendEnumDef(def: EnumTypeExtensionNode): EnumTypeComposer; makeExtendScalarDef(def: ScalarTypeExtensionNode): ScalarTypeComposer; } export declare function getDescription(node: { description?: StringValueNode; loc?: Location; }, options?: { commentDescriptions?: boolean; }): string | null | undefined; //# sourceMappingURL=TypeMapper.d.ts.map