import { AllOutputTypesPossible } from '../typegenTypeHelpers'; import { OutputDefinitionBlock } from './definitionBlocks'; import { IsSubscriptionType, SubscriptionBuilder } from './subscriptionType'; export interface NexusExtendTypeConfig { type: TypeName; definition(t: IsSubscriptionType extends true ? SubscriptionBuilder : OutputDefinitionBlock): void; } export declare class NexusExtendTypeDef { readonly name: TypeName; protected config: NexusExtendTypeConfig & { name: TypeName; }; constructor(name: TypeName, config: NexusExtendTypeConfig & { name: TypeName; }); get value(): NexusExtendTypeConfig & { name: TypeName; }; } /** * Adds new fields to an existing objectType in the schema. Useful when * splitting your schema across several domains. * * @see https://nexusjs.org/docs/api/extend-type */ export declare function extendType(config: NexusExtendTypeConfig): NexusExtendTypeDef;