/** * Header/footer envelopes for generated files. * * Copied verbatim from `apps/compiler/src/runner/file-envelopes.ts`. The * compiler stamps every file it emits — `-- Generated by quickback.dev` on * source, a `$$__quickback_warning__$$` key on drizzle journals. Under * compiler-owned migrations those stamped bytes are what landed in the user's * repo, so locally generated migrations must carry the same envelope or a * project's migration tree ends up half-decorated across the cutover. * * Both `addHeader` and `addFooter` are idempotent by design (the compiler's * envelope pass already runs in both its compile paths), which is what makes * it safe to apply on every commit, including to files staged from a previous * compile that already carry an envelope. * * Keep byte-equivalent to the compiler's copy — the parity gate compares * these exact bytes. */ export interface GeneratedFile { path: string; content: string; type?: string; feature?: string; } /** * Strip the `$$__quickback_warning__$$` key from a JSON payload, if present. */ export declare function stripJsonHeader(content: string): string; export declare function stripGeneratedSqlEnvelope(content: string): string; export declare const DRIZZLE_JOURNAL_JSON_RE: RegExp; export declare const DRIZZLE_SNAPSHOT_JSON_RE: RegExp; export declare function addHeader(file: GeneratedFile): GeneratedFile; export declare function addFooter(file: GeneratedFile): GeneratedFile; /** * MIT license for the generated output. The copyright holder is the project's * own authors — the generated code belongs to the user; Quickback grants and * claims nothing over it beyond the disclaimer. No year on the copyright line: * compile output stays byte-deterministic across year boundaries. */ export declare function buildLicenseFile(projectName?: string): GeneratedFile; export declare function buildDisclaimerFile(): GeneratedFile; //# sourceMappingURL=file-envelopes.d.ts.map