import { FileSnapshot } from "../types/reversion.js"; export declare class ReversionService { private historyBaseDir; private rootSessionId; constructor(rootSessionId: string); private getFilePathHash; private getNextVersion; /** * Saves a single snapshot to the file history directory. * Returns the snapshot path. */ saveSnapshot(snapshot: FileSnapshot): Promise; /** * Reads snapshot content from the given path. */ readSnapshotContent(snapshotPath: string): Promise; /** * Deletes all snapshots for this session. */ deleteSessionHistory(): Promise; /** * Cleans up session directories older than the given number of days. * Skips the current session. */ cleanupOldSessions(days?: number): Promise; private ensureDirectory; }