/** * Snapshot Update — Update expected values in test files based on current results. * * @example * ```bash * agentprobe update-snapshots tests.yaml * # Updates expected values in test files based on current results * # Shows diff before applying, asks for confirmation * ``` */ import type { SuiteResult } from './types'; import { type BehaviorSnapshot } from './snapshots'; export interface SnapshotDiff { testName: string; field: string; oldValue: any; newValue: any; } export interface SnapshotUpdatePlan { suitePath: string; diffs: SnapshotDiff[]; snapshotFiles: SnapshotFileUpdate[]; } export interface SnapshotFileUpdate { filePath: string; oldSnapshot: BehaviorSnapshot | null; newSnapshot: BehaviorSnapshot; } /** * Generate a plan of snapshot updates based on suite results. */ export declare function planSnapshotUpdate(suitePath: string, results: SuiteResult, snapshotDir: string): SnapshotUpdatePlan; /** * Format the update plan as a human-readable diff. */ export declare function formatUpdatePlan(plan: SnapshotUpdatePlan): string; /** * Apply the snapshot update plan — write new snapshots to disk. */ export declare function applySnapshotUpdate(plan: SnapshotUpdatePlan): number; /** * Check if snapshots are outdated for a given suite result. */ export declare function hasOutdatedSnapshots(results: SuiteResult, snapshotDir: string): boolean; //# sourceMappingURL=snapshot-update.d.ts.map