/** * Edit History Tracking * * Append-only audit log for knowledge entry edits. * Records who changed what, when, and why — with a snapshot * of the previous state for diffing. */ import type { KnowledgeEntry, KnowledgeEntryEdit } from '../types.ts'; /** * Log an edit to a knowledge entry. * * Compares the previous and updated entries to determine which fields changed, * then stores an edit record with the previous snapshot. * * @param entryId - ID of the entry that was edited * @param previous - The entry state before the edit * @param updated - The entry state after the edit * @param editedBy - Username of who made the edit * @param editSummary - Optional description of what changed and why * @returns The created edit record */ export declare function logEdit(kbId: string, entryId: string, previous: KnowledgeEntry, updated: KnowledgeEntry, editedBy: string, editSummary?: string): Promise; /** * Get the edit history for a knowledge entry, newest first. * * @param entryId - ID of the entry to get history for * @param limit - Maximum number of edits to return (default 50) * @returns Array of edit records, newest first */ export declare function getHistory(entryId: string, limit?: number): Promise; //# sourceMappingURL=history.d.ts.map