/** * graph-baseline-export command — write the SQLite-backed graph * baseline to a JSON file on disk. Lets CI flows consume the baseline * without reading the datastore directly, and lets customers commit a * baseline to git if they want git-trackable enforcement. * * The baseline lives in two tables: * - `graph_baseline_meta` (existence marker, captured_at timestamp) * - `graph_baseline_signals` (one row per fingerprint) * * Export reconstructs the v1 JSON shape that lived at * `/cache/graph/baseline.json` before the SQLite migration, * so any external consumer that previously read the file directly can * read the exported file unchanged. */ import type { DataStore } from '@opensip-tools/datastore'; export interface GraphBaselineExportResult { readonly type: 'graph-baseline-export'; readonly outPath: string; readonly bytesWritten: number; readonly fingerprintCount: number; } export interface GraphBaselineExportErrorResult { readonly type: 'error'; readonly message: string; readonly exitCode: number; } /** * Read the graph baseline from the datastore and write it to `outPath` * as the v1 file shape (version, tool, capturedAt, fingerprints[]). */ export declare function exportGraphBaseline(datastore: DataStore, outPath: string): GraphBaselineExportResult | GraphBaselineExportErrorResult; //# sourceMappingURL=baseline-export.d.ts.map