/** * AtlasImporter — loads atlas.json into SQLite. * * The entire import runs in a single transaction (ADR-06's round-trip * invariant requires all-or-nothing import semantics: partial state on * failure is worse than empty). Existing rows in the target tables are * cleared before the new data is written, so importing twice produces * the same final state regardless of starting state. * * Supports atlas versions 1.0 and 1.1 (ADR-11). v1.0 atlases have no * git block; they load into empty git tables without complaint. v1.1 * atlases populate git_commits + git_file_commits from the embedded * commit list. */ import type { DatabaseInstance } from "./db.js"; import { type AtlasFileV1 } from "./types.js"; export declare const ATLAS_META_KEYS: { readonly version: "version"; readonly generatedAt: "generated_at"; readonly generatorContextatlasVersion: "generator.contextatlas_version"; /** * Atlas schema v1.3+ (v0.3 Theme 1.3) — git HEAD SHA of the * contextatlas binary that produced the atlas. Optional; absent * when the binary is not run from a git checkout. */ readonly generatorContextatlasCommitSha: "generator.contextatlas_commit_sha"; readonly generatorExtractionModel: "generator.extraction_model"; /** ADR-11 — git HEAD SHA at extraction time. Stored even when null-absent. */ readonly extractedAtSha: "extracted_at_sha"; }; /** * Read an atlas.json file from disk, parse it, and import into the given * database. Convenience wrapper around `importAtlas`. */ export declare function importAtlasFile(db: DatabaseInstance, filePath: string): void; /** * Replace the database's atlas-owned tables with the contents of the given * atlas object. Idempotent: importing the same atlas twice yields the * same final state. Non-atlas tables are untouched. */ export declare function importAtlas(db: DatabaseInstance, atlas: AtlasFileV1): void; //# sourceMappingURL=atlas-importer.d.ts.map