import { default as Database } from 'better-sqlite3'; import { ContentDiff } from './types.js'; /** * Manages content history (diffs) for transcript content */ export declare class HistoryManager { private db; constructor(db: Database.Database); /** * Save a content change as a diff */ saveContentChange(contentId: number, oldText: string, newText: string): void; /** * Get all diffs for a content item */ getContentHistory(contentId: number): ContentDiff[]; /** * Reconstruct content at a specific point in time * Applies diffs in reverse order from current content */ reconstructContentAtVersion(contentId: number, versionId: number): string | null; /** * Get the number of versions for a content item */ getVersionCount(contentId: number): number; /** * Reverse a unified diff patch (swap additions and deletions) */ private reversePatch; } //# sourceMappingURL=history.d.ts.map