/** * Response cache for PMID and DOI metadata * * In-memory cache with TTL to avoid redundant API calls. * - Per ADR-001: No persistent cache files on disk * - Cache is warm during interactive sessions (server mode) * - CLI invocations start fresh */ import type { CslItem } from "../../core/csl-json/types.js"; /** * Cache configuration */ export interface CacheConfig { /** Time-to-live in milliseconds (default: 1 hour) */ ttlMs?: number; } /** * Get cached PMID result */ export declare function getPmidFromCache(pmid: string): CslItem | undefined; /** * Cache PMID result */ export declare function cachePmidResult(pmid: string, item: CslItem, config?: CacheConfig): void; /** * Get cached DOI result */ export declare function getDoiFromCache(doi: string): CslItem | undefined; /** * Cache DOI result */ export declare function cacheDoiResult(doi: string, item: CslItem, config?: CacheConfig): void; /** * Get cached ISBN result */ export declare function getIsbnFromCache(isbn: string): CslItem | undefined; /** * Cache ISBN result */ export declare function cacheIsbnResult(isbn: string, item: CslItem, config?: CacheConfig): void; /** * Get cached arXiv result */ export declare function getArxivFromCache(arxivId: string): CslItem | undefined; /** * Cache arXiv result */ export declare function cacheArxivResult(arxivId: string, item: CslItem, config?: CacheConfig): void; /** Reset all caches (for test isolation) */ export declare function resetCache(): void; //# sourceMappingURL=cache.d.ts.map