import type { GraphQLType, GraphQLNamedType, GraphQLOutputType, GraphQLInputType } from '../graphql'; import { ObjectTypeComposer } from '../ObjectTypeComposer'; import { InputTypeComposer } from '../InputTypeComposer'; import { ScalarTypeComposer } from '../ScalarTypeComposer'; import { EnumTypeComposer } from '../EnumTypeComposer'; import { InterfaceTypeComposer } from '../InterfaceTypeComposer'; import { UnionTypeComposer } from '../UnionTypeComposer'; import { NonNullComposer } from '../NonNullComposer'; import { ListComposer } from '../ListComposer'; import { ThunkComposer } from '../ThunkComposer'; import type { TypeAsString } from '../TypeMapper'; import type { SchemaComposer } from '../SchemaComposer'; export declare type AnyTypeComposer = NamedTypeComposer | ListComposer | NonNullComposer | ThunkComposer; export declare type NamedTypeComposer = ObjectTypeComposer | InputTypeComposer | EnumTypeComposer | InterfaceTypeComposer | UnionTypeComposer | ScalarTypeComposer; export declare type ComposeNamedOutputType = ObjectTypeComposer | EnumTypeComposer | ScalarTypeComposer | InterfaceTypeComposer | UnionTypeComposer; export declare type ComposeOutputType = ComposeNamedOutputType | NonNullComposer | ListComposer | ThunkComposer; export declare type ComposeOutputTypeDefinition = Readonly> | Readonly | TypeAsString | ReadonlyArray> | Readonly | TypeAsString | ReadonlyArray> | Readonly | TypeAsString>>; export declare type ComposeNamedInputType = InputTypeComposer | EnumTypeComposer | ScalarTypeComposer; export declare type ComposeInputType = ComposeNamedInputType | ThunkComposer, GraphQLInputType> | NonNullComposer | ThunkComposer, GraphQLInputType> | ListComposer> | ListComposer | ThunkComposer, GraphQLInputType> | ListComposer | NonNullComposer>; export declare type ComposeInputTypeDefinition = TypeAsString | Readonly | Readonly | ReadonlyArray | Readonly | ReadonlyArray | Readonly>>; export declare function isTypeNameString(str: string): boolean; export declare function isWrappedTypeNameString(str: string): boolean; export declare function isTypeDefinitionString(str: string): boolean; export declare function isSomeOutputTypeDefinitionString(str: string): boolean; export declare function isSomeInputTypeDefinitionString(str: string): boolean; export declare function isOutputTypeDefinitionString(str: string): boolean; export declare function isInputTypeDefinitionString(str: string): boolean; export declare function isEnumTypeDefinitionString(str: string): boolean; export declare function isScalarTypeDefinitionString(str: string): boolean; export declare function isInterfaceTypeDefinitionString(str: string): boolean; export declare function isUnionTypeDefinitionString(str: string): boolean; export declare function isSomeOutputTypeComposer(type: any): type is ComposeOutputType; export declare function isSomeInputTypeComposer(type: any): type is ComposeInputType; export declare function isComposeNamedType(type: any): type is NamedTypeComposer | GraphQLNamedType; export declare function isComposeType(type: any): type is AnyTypeComposer; export declare function isComposeOutputType(type: any): type is ComposeOutputTypeDefinition; export declare function isComposeInputType(type: any): type is ComposeInputTypeDefinition; export declare type AnyType = NamedTypeComposer | GraphQLNamedType; export declare function isNamedTypeComposer(type: any): type is NamedTypeComposer; export declare function isTypeComposer(type: any): type is AnyTypeComposer; export declare function getGraphQLType(anyType: any): GraphQLType; export declare function getComposeTypeName(type: any, sc: SchemaComposer): string; export declare function unwrapTC(anyTC: AnyTypeComposer): NamedTypeComposer; export declare function unwrapInputTC(inputTC: ComposeInputType): ComposeNamedInputType; export declare function unwrapOutputTC(outputTC: ComposeOutputType): ComposeNamedOutputType; export declare function changeUnwrappedTC(anyTC: T, cb: (tc: NamedTypeComposer) => NamedTypeComposer): T; export declare function replaceTC(anyTC: T, replaceByTC: Readonly> | ((unwrappedTC: NamedTypeComposer) => NamedTypeComposer)): T; export declare function unwrapTypeNameString(str: string): string; export declare function cloneTypeTo(type: AnyTypeComposer | TypeAsString | GraphQLType, anotherSchemaComposer: SchemaComposer, cloneMap?: Map): AnyTypeComposer | TypeAsString; //# sourceMappingURL=typeHelpers.d.ts.map