/** * Cache management utilities for Context-Pods CLI */ import type { CLIConfig } from '../types/cli-types.js'; /** * Cache statistics */ interface CacheStats { entries: number; totalSize: number; oldestEntry: number; newestEntry: number; } /** * Cache manager for CLI operations */ export declare class CacheManager { private cacheDir; constructor(config: CLIConfig); /** * Resolve cache directory path */ private resolveCacheDir; /** * Initialize cache directory */ init(): Promise; /** * Generate cache key from data */ private generateKey; /** * Get cache file path */ private getCacheFilePath; /** * Set cache entry */ set(namespace: string, identifier: string, data: T, options?: { ttl?: number; version?: string; keyData?: any; }): Promise; /** * Get cache entry */ get(namespace: string, identifier: string, options?: { version?: string; keyData?: any; }): Promise; /** * Delete cache entry */ delete(namespace: string, identifier: string, options?: { keyData?: any; }): Promise; /** * Clear entire namespace */ clearNamespace(namespace: string): Promise; /** * Clear all cache */ clearAll(): Promise; /** * Get cache statistics */ getStats(): Promise; /** * Clean expired entries */ cleanExpired(): Promise; /** * Template cache helpers */ cacheTemplate(templatePath: string, template: any): Promise; getCachedTemplate(templatePath: string): Promise; /** * Build cache helpers */ cacheBuildResult(target: string, result: any): Promise; getCachedBuildResult(target: string): Promise; /** * Analysis cache helpers */ cacheAnalysis(filePath: string, analysis: any): Promise; getCachedAnalysis(filePath: string): Promise; } export {}; //# sourceMappingURL=cache-manager.d.ts.map