import type { EcosystemCache, EcosystemCapability } from '../../types/index.js';
/**
 * Read the ecosystem cache from disk. Returns empty cache on any error.
 */
export declare function readCache(): EcosystemCache;
/**
 * Write updated cache to disk. Silently ignores write errors.
 */
export declare function writeCache(cache: EcosystemCache): void;
/**
 * Merge new capabilities into existing cache, deduplicating by id.
 * Prunes capabilities older than PRUNE_DAYS days.
 */
export declare function mergeCapabilities(existing: EcosystemCapability[], incoming: EcosystemCapability[]): EcosystemCapability[];
/**
 * Check whether a source needs re-crawling given its TTL in hours.
 */
export declare function isCacheStale(lastCrawled: Record<string, string>, sourceId: string, intervalHours: number): boolean;
/**
 * Update the lastCrawled timestamp for a source.
 */
export declare function markCrawled(lastCrawled: Record<string, string>, sourceId: string): Record<string, string>;
//# sourceMappingURL=knowledge-cache.d.ts.map