/** * Deployed storage-name change protection for naming.normalization. * * When prior projection metadata is available, a storage rename without an * explicit legacy mapping is diagnosed per `naming.storageNameChange`. * Legacy mappings always emit a clear warning (never silent). */ import type { ResolvedNamingConfig, NamingConfigDiagnostic } from './naming-config.js'; /** Prior entity → table / Entity.field → column names from a previous generate. */ export interface PriorStorageSnapshot { tables?: Record; fields?: Record; } export interface ProposedStorageNames { /** Canonical Manifest entity name → table/collection about to be generated. */ tables: Record; /** `Entity.field` or `Entity.relationship` → column about to be generated. */ fields?: Record; } /** * Diagnose storage renames and mapping collisions for one projection. * No-op when normalization is off or storageNameChange is off (unless * legacy mappings are active — those always warn). */ export declare function detectStorageNameChanges(policy: ResolvedNamingConfig, projection: 'convex' | 'prisma', proposed: ProposedStorageNames, prior?: PriorStorageSnapshot | null): NamingConfigDiagnostic[]; //# sourceMappingURL=naming-storage-guard.d.ts.map