export interface OptimizationResult { originalTextHash: string; optimizedText: string; originalTokens: number; optimizedTokens: number; tokensSaved: number; } export declare function getDefaultOptimizationDbPath(): string; export declare class SqliteOptimizationStorage { private db; private readonly dbPath; private readonly compressionEngine; constructor(dbPath?: string); initializeDatabase(): void; private requireDb; save(entry: OptimizationResult): void; get(originalTextHash: string): OptimizationResult | null; /** * Decode a stored payload using the persisted algorithm label. Keeps * the door open for additional algorithms (gzip, zstd) without * touching the read path, and surfaces an explicit error for * unknown labels instead of silently corrupting data. */ private decodePayload; /** Algorithm label paired with the current CompressionEngine. */ static readonly COMPRESSION_ALGORITHM = "brotli"; close(): void; } //# sourceMappingURL=optimization-storage.d.ts.map