/** * Runtime Graph persistence * * Reading, writing and canonical-serializing architecture/runtime-dependencies.json. Split out of * runtime-graph.ts (which owns the derivation and had grown past the file-size limit). * * `formatRuntimeJson` is the ONE canonical rendering: validate-runtime-architecture compares the * freshly derived graph to the committed one as STRINGS, so any second way of writing this file * would show up as unfixable drift. */ import type { RuntimeGraph } from './runtime-graph-model'; export declare const DEFAULT_RUNTIME_GRAPH_PATH = "architecture/runtime-dependencies.json"; export declare function saveRuntimeGraph(graph: RuntimeGraph, workspaceRoot: string, graphPath?: string): void; export declare function runtimeGraphFileExists(workspaceRoot: string, graphPath?: string): boolean; export declare function loadRuntimeGraph(workspaceRoot: string, graphPath?: string): RuntimeGraph | null; /** Serialize for an in-memory equality check (matches the on-disk format). */ export declare function serializeRuntimeGraph(graph: RuntimeGraph): string;