import { type SchemaTypes } from '@pothos/core'; import { type DrizzleRef } from '../interface-ref.js'; export declare const refMap: WeakMap>>; export declare function getRefFromModel(name: string, builder: PothosSchemaTypes.SchemaBuilder, type?: 'interface' | 'object'): DrizzleRef; /** * Added to table name parameters when `DrizzleRelations` isn't set, so the error says how to set * it up instead of showing `never`. It's a branded string so editors don't suggest it. */ type MissingDrizzleRelations = string & { readonly missingDrizzleRelations: Hint; }; type DrizzleRelationsSetup = 'Set DrizzleRelations on SchemaTypes: new SchemaBuilder<{ DrizzleRelations: typeof relations }>(...)'; export type DrizzleRelationsHint = [ keyof Types['DrizzleRelations'] ] extends [never] ? MissingDrizzleRelations | (List extends true ? [MissingDrizzleRelations] : never) : never; export {}; //# sourceMappingURL=refs.d.ts.map