/** * Runtime dependency resolver for compiled connector modules. * * Compiled connectors are staged in private OS temp directories so the runtime * never writes into an installed package or requires a writable launch cwd. * Bare imports in those modules must nevertheless resolve from the * connector-worker installation. The ESM hook and staged node_modules facade * provide that rebase for both ESM imports and CommonJS require(). */ type ResolveContext = { parentURL?: string; [key: string]: unknown; }; type ResolveResult = { url: string; format?: string | null; shortCircuit?: boolean; [key: string]: unknown; }; type NextResolve = (specifier: string, context: ResolveContext) => Promise; export declare function isConnectorRuntimeDependency(specifier: string): boolean; /** * Stage a private node_modules facade beside a compiled connector module. * Node's ESM loader hook does not affect createRequire()/CommonJS resolution, * so both current and previously persisted bundles need these package links. */ export declare function stageConnectorRuntimeDependencies(tempDir: string): Promise; /** Receive the connector-worker module URL in the isolated loader thread. */ export declare function initialize(data: unknown): void; /** * Resolve runtime-provided connector dependencies as though the import * originated inside connector-worker. Delegating to Node's next resolver keeps * package export conditions (including import-only SDK subpaths) intact. */ export declare function resolve(specifier: string, context: ResolveContext, nextResolve: NextResolve): Promise; /** * Install the resolver once in this process before importing a compiled * connector. Bun's source-mode resolver already runs from the workspace graph; * the loader is for the Node runtime used by published packages and images. */ export declare function registerConnectorRuntimeDependencyLoader(): void; export {}; //# sourceMappingURL=runtime-dependency-loader.d.ts.map