/** * Cache layer for check results */ import type { CheckResult, CacheOptions } from './types.js'; /** * Hybrid cache that uses memory for current session and file for persistence */ export declare class CheckResultCache { private memoryCache; private fileCache; private readonly type; constructor(options?: CacheOptions); /** * Get a cached result */ get(siteKey: string, username: string): CheckResult | null; /** * Set a cached result */ set(siteKey: string, username: string, result: CheckResult): void; /** * Check if a result is cached */ has(siteKey: string, username: string): boolean; /** * Clear the cache */ clear(): void; /** * Get cache statistics */ stats(): { type: string; memorySize: number; fileSize?: number; }; private getCacheKey; }