import type { CatalogCacheEntry } from '../types/index.js'; export declare const DEFAULT_TTL_MS: number; export declare const CACHE_FILENAME = "catalog-cache.json"; export declare const CACHE_PREV_FILENAME = "catalog-cache.prev.json"; export declare const CACHE_SUBDIR = "cache"; export declare function getCachePath(): string; export declare function getSourceCacheDir(): string; export declare function getSourceCachePath(id: string): string; export declare function getSourceCachePrevPath(id: string): string; export declare function loadCache(): CatalogCacheEntry | null; export declare function saveCache(entry: CatalogCacheEntry): void; export declare function backupCache(): void; export declare function rollbackCache(): boolean; export declare function loadSourceCache(id: string): CatalogCacheEntry | null; export declare function saveSourceCache(id: string, entry: CatalogCacheEntry): void; export declare function backupSourceCache(id: string): void; export declare function rollbackSourceCache(id: string): boolean; export declare function isCacheValid(entry: CatalogCacheEntry, ttlMs?: number): boolean;