import type { FieldMap, FieldNullability, InputFieldMap, InterfaceFieldsShape, InterfaceParam, Normalize, ObjectFieldsShape, ParentShape, SchemaTypes, TypeParam, UnionToIntersection } from '@pothos/core'; import type { PothosSimpleObjectsPlugin } from '.'; import type { OutputShapeFromFields, SimpleObjectFieldsShape } from './types'; declare global { export namespace PothosSchemaTypes { interface Plugins { simpleObjects: PothosSimpleObjectsPlugin; } interface SchemaBuilder { simpleObject: [], Fields extends FieldMap, Shape extends Normalize & UnionToIntersection>>>(name: string, options: SimpleObjectTypeOptions, fields?: ObjectFieldsShape) => ObjectRef; simpleInterface: [], Fields extends FieldMap, Shape extends Normalize & UnionToIntersection>>>(name: string, options: SimpleInterfaceTypeOptions, fields?: InterfaceFieldsShape) => InterfaceRef; } interface PothosKindToGraphQLType { SimpleObject: 'Object'; SimpleInterface: 'Interface'; } interface FieldOptionsByKind, Nullable extends FieldNullability, Args extends InputFieldMap, ResolveShape, ResolveReturnShape> { SimpleObject: ObjectFieldOptions; SimpleInterface: InterfaceFieldOptions; } type SimpleObjectTypeOptions[], Fields extends FieldMap, Shape> = Omit | ObjectTypeWithInterfaceOptions, 'fields' | 'interfaces'> & { interfaces?: (() => Interfaces) | Interfaces; fields?: SimpleObjectFieldsShape; }; interface SimpleInterfaceTypeOptions[], Fields extends FieldMap, Shape> extends Omit, 'fields' | 'interfaces'> { interfaces?: (() => Interfaces) | Interfaces; fields?: SimpleObjectFieldsShape; } } } //# sourceMappingURL=global-types.d.ts.map