import type { SentimentSnapshot } from '../types.js'; /** Override cache directory (for testing) */ export declare function _setCacheDir(dir: string): void; /** Get current cache directory */ export declare function _getCacheDir(): string; export declare function readCache(): SentimentSnapshot | null; export declare function writeCache(snapshot: SentimentSnapshot): void; export declare function isCacheFresh(ttlSeconds?: number): boolean; export declare function getCachedOrCompute(options?: { ttlSeconds?: number; noCache?: boolean; computeFn?: () => Promise; }): Promise;