/** * CSS Cache Manager * * Manages per-page CSS caching to avoid redundant SSR for CSS generation. * Supports injection of CacheRepository for testing. * * @module rendering/orchestrator/css-cache */ import type { CacheRepository } from "../../repositories/types.js"; import { LRUCache } from "../../utils/lru-wrapper.js"; /** Timeout for CSS generation SSR (shorter than full SSR since it's optional) */ export declare const CSS_SSR_TIMEOUT_MS = 5000; /** Maximum number of entries in the CSS cache */ export declare const PAGE_CSS_CACHE_MAX_SIZE = 200; /** Exposed for testing only — do not use in production code */ export declare const __pageCssCacheForTests: LRUCache; /** * Inject a CacheRepository for CSS cache testing. * Call with null to restore default Map-based caching. */ export declare function __injectCssCacheForTests(cacheRepo: CacheRepository | null): void; /** Create a cache key for page CSS */ export declare function getPageCssCacheKey(projectId: string | undefined, environment: string | undefined, slug: string, projectUpdatedAt: string | undefined, dependencyPinningCacheKey?: string, moduleServerOrigin?: string): string; /** Get cached CSS for a page (if available) - sync for backward compatibility */ export declare function getCachedPageCss(cacheKey: string): string | undefined; /** Cache CSS for a page - sync for backward compatibility */ export declare function cachePageCss(cacheKey: string, css: string): void; //# sourceMappingURL=css-cache.d.ts.map