/** * File Organizer MCP Server v3.4.2 * History Logger Service * * Tracks operation history with JSON-lines format, batching, and file rotation. */ export interface HistoryEntry { id: string; timestamp: string; operation: string; source: "manual" | "scheduled"; status: "success" | "error" | "partial"; durationMs: number; filesProcessed?: number; filesSkipped?: number; details?: string; error?: { message: string; code?: string; }; } export interface HistoryQuery { startDate?: string; endDate?: string; operation?: string; status?: "success" | "error" | "partial"; source?: "manual" | "scheduled"; limit?: number; offset?: number; privacyMode?: "full" | "redacted" | "none"; } export interface HistoryResult { entries: HistoryEntry[]; total: number; hasMore: boolean; } interface HistoryLoggerConfig { dataDir: string; batchSize: number; batchTimeoutMs: number; maxFileSizeBytes: number; maxBackupFiles: number; lockTimeoutMs: number; } export declare class HistoryLoggerService { private config; private writeQueue; private pendingEntries; private flushTimeout; private initialized; private historyFilePath; private lockFilePath; constructor(config?: Partial); init(): Promise; getHistoryFilePath(): string; log(entry: Omit): Promise; private flush; private writeEntries; private acquireLock; private releaseLock; private checkRotation; getHistory(query?: HistoryQuery): Promise; private applyPrivacyMode; private redactPaths; flushAndClose(): Promise; } export declare const historyLogger: HistoryLoggerService; export {}; //# sourceMappingURL=history-logger.service.d.ts.map