/** * Persistence layer for plan comparison results. * * Reads and writes comparison data to `.agents-reverse-engineer/plans//`. * * @module */ import type { PlanComparison } from './types.js'; /** * Save a plan comparison to disk. * * Creates the directory structure and writes: * - `comparison.json` - Full comparison data * - `plan-with-docs.md` - Raw plan text (with docs) * - `plan-without-docs.md` - Raw plan text (without docs) * * @param projectRoot - The project root directory * @param comparison - The comparison data to save * @param withDocsPlan - Raw plan markdown from "with docs" run * @param withoutDocsPlan - Raw plan markdown from "without docs" run */ export declare function saveComparison(projectRoot: string, comparison: PlanComparison, withDocsPlan: string, withoutDocsPlan: string): Promise; /** * Load a plan comparison from disk. * * @param projectRoot - The project root directory * @param id - The comparison ID (ISO timestamp or partial match) * @returns The comparison data, or null if not found */ export declare function loadComparison(projectRoot: string, id: string): Promise; /** * Load plan markdown text from a saved comparison. * * @param projectRoot - The project root directory * @param id - The comparison ID * @param variant - Which plan to load * @returns The plan markdown text, or null if not found */ export declare function loadPlanText(projectRoot: string, id: string, variant: 'with-docs' | 'without-docs'): Promise; /** * List all saved plan comparisons. * * @param projectRoot - The project root directory * @returns Array of comparisons sorted by date (newest first) */ export declare function listComparisons(projectRoot: string): Promise; //# sourceMappingURL=storage.d.ts.map