import { CacheMetrics, CacheStats } from "./types"; export declare const MAX_HISTORY = 9999; export declare class CacheStatsManager { /** * Method to store hit statistics * @param operation operation identifier * @param time time spent generating this hit, usually in milliseconds */ static hit(operation: string, time: number): void; /** * Method to store miss statistics * @param operation operation identifier * @param time time spent generating this miss, usually in milliseconds */ static miss(operation: string, time: number): void; private static updateHits; private static updateMisses; static getOperationData(operation: string): CacheStats | undefined; static getOperationStats(operation: string, source?: Map): CacheMetrics | undefined; static getOperations(): string[]; /** * Returns a printable string with operation information * @param operation operation identifier * @param source an optional alternative source of data * @returns string with operation information if found or empty string */ static operationStatsString(operation: string, source?: Map): string; } //# sourceMappingURL=cache-stats.d.ts.map