/** * Config G6 — Prisma multiSchema.splitFiles. * * When enabled, emit a root schema (datasource + generator) plus one `.prisma` * file per database schema containing that schema's models/enums. Prisma merges * every `.prisma` file under the schema folder (no import statements). */ import type { ProjectionArtifact, ProjectionDiagnostic } from '../interface.js'; import type { PrismaProjectionOptions } from './options.js'; export interface SchemaTaggedBlock { schemaName: string; code: string; } export interface SplitFilesPlan { enabled: boolean; dir: string; } /** Sanitize a DB schema name into a stable relative filename stem. */ export declare function schemaFileStem(schemaName: string): string; export declare function resolveSplitFilesPlan(options: PrismaProjectionOptions): { plan: SplitFilesPlan | undefined; diagnostics: ProjectionDiagnostic[]; }; /** * Build root + per-schema artifacts. Root keeps datasource/generator; each * schema file holds models/enums for that schema (still carrying @@schema). */ export declare function buildSplitPrismaArtifacts(args: { headerStr: string; rootPathHint: string; modelBlocks: SchemaTaggedBlock[]; enumBlocks: SchemaTaggedBlock[]; splitDir: string; }): ProjectionArtifact[]; //# sourceMappingURL=split-files.d.ts.map