export interface CachedComponentSource { source: string; resolvedPath: string; } /** * Set the maximum number of component sources retained in the LRU cache. * When the new size is smaller than the current cache, the least-recently * used entries are evicted until the limit is satisfied. */ export declare const setCacheSize: (size: number) => void; /** * LRU Cache: Gets cached content and marks it as recently used * Moves the accessed item to the end of the Map (most recently used position) * This ensures frequently accessed components stay in cache longer * @param path - The file path to retrieve from cache * @returns The cached content or undefined if not found */ export declare const getCachedComponentSource: (path: string) => string | undefined; export declare const clearCachedComponents: () => void; export declare const deleteCachedComponent: (path: string) => boolean; /** * Gets cached component content together with the URL it resolved to. * Keeping the resolved URL is required for folder components because relative * scripts, styles, and child components use it as their base URL. */ export declare const getCachedComponent: (path: string) => CachedComponentSource | undefined; /** * LRU Cache: Stores content with automatic eviction of least recently used items * Maintains cache size limit by removing oldest items when full * Updates existing items without affecting cache size * @param path - The file path to cache * @param content - The content to store */ export declare const setCachedComponentSource: (path: string, content: string, resolvedPath?: string) => void;