import type { DMMF } from '@prisma/generator-helper'; import { type GoImports } from './type-map'; /** * Determine the set of field names that serve as foreign keys for relations. * These are the scalar fields referenced in `relationFromFields` of relation fields. */ export declare function collectFKFieldNames(fields: readonly DMMF.Field[]): Set; /** * Generate the Ent field definition lines for a Prisma model. * * - Skips relation (object) fields — those become edges. * - Includes FK scalar fields so they can be bound to edges via `.Field()`. * - Handles ID fields: skips default Int autoincrement IDs (Ent default), * but generates UUID ID fields when needed. * - Uses Prisma field names (camelCase) as Ent field names, with * `.StorageKey()` for the DB column mapping from `@map`. * * @returns An array of Go code strings, each representing one `field.X(...)` call. */ export declare function generateFields(fields: readonly DMMF.Field[], fkFieldNames: Set, enumDefs: Map, imports: GoImports): string[]; /** * Parse a `@ent.json` annotation from a field's documentation comment. * * Supported values: `array`, `object`. * Returns `'array'` or `'object'`, defaulting to `'object'` when absent. */ export declare function parseJsonTypeAnnotation(documentation?: string): 'array' | 'object'; //# sourceMappingURL=field.d.ts.map