/** * HTTP Bundle Validation Helpers for SSR Module Loader * * Extracts and validates HTTP bundle paths from transformed code. * Used to proactively recover missing bundles before module import. * * @module module-system/react-loader/ssr-module-loader/http-bundle-helpers */ import { LRUCache } from "../../../utils/lru-wrapper.js"; /** * Visit VF module code blocks imported by the given module, including nested VF modules. * The visitor receives both the module code and the absolute vfmod file path. */ export declare function visitImportedVfModules(code: string, visitor: (vfModuleCode: string, vfModulePath?: string) => void | Promise): Promise; /** * Recursively extract all HTTP bundle paths from code and any VF modules it imports. * This ensures transitive HTTP bundle dependencies through VF modules are discovered. */ export declare function extractAllHttpBundlePathsRecursive(code: string): Promise>; /** Extract HTTP bundle paths from transformed code for proactive recovery */ export declare function extractHttpBundlePaths(code: string): Array<{ path: string; hash: string; }>; /** * Extract ALL file:// paths from cached code (local imports + HTTP bundles). * Used to validate that all paths in cached transforms exist locally before use. * This prevents "Module not found" errors when Redis returns transforms from * other pods with different temp directories. */ export declare function extractAllFilePaths(code: string): string[]; /** * Extract all file:// paths from cached code and any transitively imported VF modules. * This catches stale pod-local paths that only appear in nested vfmod dependencies. */ export declare function extractAllFilePathsRecursive(code: string): Promise; /** * Track modules whose HTTP bundles have been verified, keyed by tempPath:contentHash. * Bounded LRU to prevent unbounded memory growth in long-running pods. * Keying by contentHash ensures verification is re-done when content changes at the same path. */ export declare const verifiedHttpBundlePaths: LRUCache; //# sourceMappingURL=http-bundle-helpers.d.ts.map