import type { PendingOperation, UndoEntry } from "./types.js"; interface ListHistoryOptions { limit: number; includeUndone: boolean; } interface IdMappingUpdate { sourceEntityId: string; targetEntityId: string; } export declare class UndoStore { private readonly historyDirectory; private readonly maxEntriesPerBudget; private readonly budgetLocks; constructor(dataDirectory: string, maxEntriesPerBudget?: number); appendEntries(budgetId: string, entries: UndoEntry[], idMappings?: IdMappingUpdate[]): Promise; listEntries(budgetId: string, options: ListHistoryOptions): Promise; getEntriesByIds(budgetId: string, entryIds: string[]): Promise>; markEntriesUndone(budgetId: string, entryIds: string[]): Promise; resolveMappedId(budgetId: string, entityId: string): Promise; updateIdMappings(budgetId: string, sourceEntityId: string, targetEntityId: string): Promise; markPending(budgetId: string, description: string): Promise; clearPending(budgetId: string, pendingId: string): Promise; getPendingOperations(budgetId: string): Promise; private applyIdMapping; private resolveMappedIdFromHistory; private readBudgetHistory; private readBudgetHistoryUnsafe; private writeBudgetHistoryUnsafe; private pruneIdMappings; private ensureHistoryDirectory; private getBudgetHistoryPath; private quarantineCorruptHistoryFile; private withBudgetLock; } export {};