import { createFileSystem } from "../../../platform/compat/fs.js"; import type { ModuleCacheEntry, SSRModuleLoaderOptions } from "./types.js"; /** * Manages caching concerns for SSR module loading: * - Cache key computation and config hashing * - Content hashing (sync for small content, async SHA-256 for large) * - Temp file path management * - Cached code validation (HTTP bundles, local paths, VF module imports) * - Cache entry invalidation */ export declare class SSRCacheManager { private options; private fs; private cachedConfigHash; constructor(options: SSRModuleLoaderOptions); /** Lazily compute config hash once per manager instance. */ getConfigHash(): string; getCacheKey(filePath: string): string; hashContentAsync(content: string): Promise; getTempPath(filePath: string, contentHash?: string): Promise; isProductionContentSource(): boolean; validateCachedCode(code: string, filePath: string, source: "memory-cache" | "redis-cache", options: { checkLocalPaths: boolean; checkInvalidEsmShPath: boolean; }): Promise; validateMemoryCacheEntry(cachedEntry: ModuleCacheEntry, contentCacheKey: string, filePathCacheKey: string, filePath: string): Promise; invalidateFilePathCacheEntry(filePath: string, cacheEntry?: ModuleCacheEntry): void; invalidateContentAndFileCacheEntries(contentCacheKey: string, filePathCacheKey: string, cacheEntry?: ModuleCacheEntry): void; private invalidateMatchingCacheEntries; /** Get the filesystem instance for external callers. */ getFs(): ReturnType; private hasUnresolvedVfModuleImports; private hasMissingHttpBundles; private hasMissingLocalPaths; private ensureTmpDir; } //# sourceMappingURL=ssr-cache-manager.d.ts.map