import type { Context } from '../context.js'; type Middleware = (ctx: Context, next: () => Promise) => unknown; interface CacheConfig { levels: { memory?: { max: number; ttl: number; }; redis?: { ttl: number; prefix: string; }; database?: { ttl: number; table: string; }; }; compression?: boolean; aiOptimization?: boolean; invalidation?: { patterns: string[]; strategies: 'immediate' | 'lazy' | 'ttl'; }; } /** * Advanced caching middleware with AI-powered optimization * * Features: * - Multi-level caching (Memory → Redis → Database) * - AI-powered predictive caching * - Intelligent cache invalidation * - Compression support * - Performance monitoring */ export declare function advancedCache(config: CacheConfig): Middleware; /** * Cache management utilities */ export declare const cacheUtils: { clearMemory: () => void; getMemoryStats: () => { size: number; entries: number; }; getPredictedKeys: () => string[]; preloadKey: (key: string) => void; }; export {}; //# sourceMappingURL=advancedCache.d.ts.map