import type { FileSystem } from "../../platform/compat/fs.js"; /** * Bare builtins supported by Deno's Node compatibility layer. * * This intentionally stays separate from the Node-runtime list used by MDX: * Deno does not implement every `node:` module exposed by current Node. */ export declare const NODE_BUILTINS: readonly ["assert", "buffer", "child_process", "cluster", "console", "constants", "crypto", "dgram", "dns", "events", "fs", "http", "http2", "https", "module", "net", "os", "path", "perf_hooks", "process", "querystring", "readline", "stream", "string_decoder", "timers", "tls", "tty", "url", "util", "v8", "vm", "worker_threads", "zlib"]; export declare function readProjectDependenciesForRoute(projectDir: string, fs: Pick): Promise>; export declare function getNodeExternalPackagesToResolveForRoute(userDeps: Map): string[]; /** Location of an ESM-only user dependency, used to rewrite imports to real ES module URLs. */ export interface EsmDependencyLocation { /** file:// URL of the package's ESM entry point. */ entryUrl: string; /** Absolute path of the package's root directory (used to contain subpath imports). */ packageDir: string; } /** * Identify the subset of user dependencies that are ESM-only and resolve each * to file:// URLs so the compiled-binary loader can import them as real ES * modules instead of transpiling them to CommonJS. CJS dependencies are omitted * and continue to load through the `createRequire`-based shim. */ export declare function resolveEsmUserDependenciesForRoute(projectDir: string, fs: Pick, userDeps: Map): Promise>; export declare function rewriteCompiledVeryfrontImportsForRoute(code: string): string; export declare function rewriteCompiledUserDependencyImportsForRoute(code: string, userDeps: Map, esmDeps?: Map): string; export declare function rewriteDenoNpmDependencyImportsForRoute(code: string, projectDir: string, fs: Pick, userDeps: Map): Promise; export declare function rewriteDenoNodeBuiltinsForRoute(code: string): string; //# sourceMappingURL=route-adapter.d.ts.map