import { GraphQLScalarType } from 'graphql'; import * as Nexus from 'nexus'; import { CustomInputArg } from './builder'; import { DmmfDocument, InternalDMMF } from './dmmf'; import { Index } from './utils'; export declare class Publisher { dmmf: DmmfDocument; nexusBuilder: Nexus.PluginBuilderLens; scalars: Record; typesPublished: Index; constructor(dmmf: DmmfDocument, nexusBuilder: Nexus.PluginBuilderLens, scalars: Record); inputType(customArg: CustomInputArg): string | Nexus.core.NexusInputObjectTypeDef | Nexus.core.NexusEnumTypeDef | Nexus.core.NexusScalarTypeDef | Nexus.core.NexusArgDef | GraphQLScalarType; outputType(outputTypeName: string, field: InternalDMMF.SchemaField): any; protected publishObject(name: string): Nexus.core.NexusObjectTypeDef; protected publishScalar(typeName: string): string | GraphQLScalarType | Nexus.core.NexusScalarTypeDef; protected publishEnum(typeName: string): Nexus.core.NexusEnumTypeDef; publishInputObjectType(inputType: InternalDMMF.InputType): Nexus.core.NexusInputObjectTypeDef; protected getTypeFromArg(arg: InternalDMMF.SchemaArg): CustomInputArg['type']; isPublished(typeName: string): boolean; markTypeAsPublished(typeName: string): void; } /** * Get the composition-order pipeline of Nexus type def functions that will match the nullability and list types of the Prisma field type. * * For example { isList:true, isRequired: true } would result in array of funcs: [nonNull, list, nonNull] */ export declare const getNexusTypesCompositionForInput: (fieldType: InternalDMMF.SchemaArg['inputType']) => Function[]; export declare const getNexusTypesCompositionForOutput: (fieldType: InternalDMMF.SchemaField['outputType']) => Function[]; //# sourceMappingURL=publisher.d.ts.map