/** * Workload heat persistence (SP-215, #115). * * Operator-local histogram persistence under `.pi-smart-router/` (already * gitignored) with a versioned, provenance-stamped artifact. The artifact is * also the export/import interchange format — copy the file to export, drop * an artifact at the path to import, delete the file (or call * `clearWorkloadHeatFile`) to clear. Privacy contract: heat keys are * requirement fingerprints (SHA-256 of rounded requirement vectors) or * operator cluster ids — never prompt text, messages, or tool arguments. */ import { WorkloadHeatMap, type HeatProvenance, type WorkloadHeatArtifact } from '../../domain/routing/workload-heat.js'; export declare const WORKLOAD_HEAT_FILENAME = "workload-heat.json"; export declare function getWorkloadHeatPath(cwd?: string): string; /** * Load the persisted histogram, or an empty map when the file is missing or * malformed (fail open with a warning — heat is a soft bias, never a gate). */ export declare function loadWorkloadHeatMap(cwd?: string, options?: { readonly maxEntries?: number; }): WorkloadHeatMap; /** * Persist the histogram with provenance. Creates `.pi-smart-router/` when * needed. Write failures propagate (fail loud — the caller decides). */ export declare function saveWorkloadHeatMap(map: WorkloadHeatMap, cwd?: string, provenance?: Partial): WorkloadHeatArtifact; /** * Clear the persisted histogram (router-reset analog). Returns true when a * file was removed; false when nothing was persisted. */ export declare function clearWorkloadHeatFile(cwd?: string): boolean; //# sourceMappingURL=workload-heat-store.d.ts.map