import { f as IStorageBackend, I as InteractionLog, c as Feedback, e as FeedbackStats, o as ExportFormat } from './ZeroDBStorage-BrocsToA.js'; import './common.d-iR60eBef.js'; /** * Local File Storage Backend * * Storage backend implementation using local filesystem for RLHF logging */ interface LocalStorageConfig { dataDir: string; compress?: boolean; maxFileSize?: number; rotateFiles?: boolean; } /** * Local file storage backend implementation */ declare class LocalStorage implements IStorageBackend { private config; private interactionsFile; private feedbackFile; private initialized; private currentFileSize; private fileRotationIndex; constructor(config: LocalStorageConfig); initialize(): Promise; storeInteraction(interaction: InteractionLog): Promise; storeFeedback(feedback: Feedback): Promise; storeInteractionsBatch(interactions: InteractionLog[]): Promise; storeFeedbackBatch(feedback: Feedback[]): Promise; getInteraction(id: string): Promise; getFeedback(id: string): Promise; getFeedbackForInteraction(interactionId: string): Promise; getInteractions(startTime: Date, endTime: Date, limit?: number): Promise; getFeedbackInRange(startTime: Date, endTime: Date, limit?: number): Promise; calculateStats(startTime?: Date, endTime?: Date): Promise; exportData(format: ExportFormat, startTime?: Date, endTime?: Date): Promise; close(): Promise; /** * Append data to file */ private appendToFile; /** * Read file and parse JSONL */ private readFile; /** * Rotate file when max size reached */ private rotateFile; /** * Compress file using gzip */ private compressFile; /** * Compute statistics from feedback and interactions */ private computeStats; /** * Convert feedback to CSV format */ private convertToCSV; } export { LocalStorage as L, type LocalStorageConfig as a };