/** * Response Cache Module * * Simple TTL-based cache for Telegram API responses. * Reduces API calls for data that rarely changes. */ /** * TTL configuration for cacheable methods (in milliseconds) */ export declare const CACHE_TTL: Record; /** * Check if a method is cacheable */ export declare function isCacheable(method: string): boolean; /** * Get cached response if available and not expired */ export declare function getCached(method: string, params: Record): T | null; /** * Store response in cache */ export declare function setCache(method: string, params: Record, data: T, ttlMs?: number): void; /** * Clear all cached entries */ export declare function clearCache(): void; /** * Clear cached entries for a specific method */ export declare function clearCacheForMethod(method: string): void; /** * Get cache statistics */ export declare function getCacheStats(): { size: number; methods: Record; }; //# sourceMappingURL=index.d.ts.map