import type { SqliteDatabase } from "../sqlite/db.js"; export interface IngestStats { inserted: number; updated: number; deleted: number; skipped: number; /** File-wins updates that DOWNGRADED a decision's lifecycle status (e.g. overridden → provisional) — usually an uncommitted status write discarded by a git operation (field D14). */ lifecycle_reverts: number; /** Per-record detail for lifecycle_reverts — feeds the blackboard warning ingest posts. scope is the reverted decision's own scope, so the warning surfaces in narrow-scope assembles. */ lifecycle_revert_details: Array<{ id: string; from: string; to: string; scope: string; }>; } /** * Converge the database to the export tree. Returns per-run stats. * Synchronous — called once at startup before the server takes traffic. */ export declare function ingestRecords(db: SqliteDatabase, twiningDir: string): IngestStats; //# sourceMappingURL=record-ingest.d.ts.map