import type { TsCompiler } from "./compiler.ts"; export interface TsImportOptions { cwd: string; agentDir: string; cacheDir: string; /** Caller-owned disposable directory, separate from the persistent npm cache. */ sourceDir?: string; /** Caller-owned module identity shared by static/dynamic imports throughout a live kernel. */ sourceModules?: Map; compiler?: Pick; signal?: AbortSignal; onNpmImport?: (specifier: string) => void; } export interface TsImportResolutions { moduleResolutions: Map; runtimeSpecifiers: Map; } export declare function resolveTsRuntimeImport(specifier: string, options: TsImportOptions): Promise; /** Types use tsrs's Node resolver; runtime uses Node's import conditions, never require conditions. */ export declare function resolveTsImports(specifiers: readonly string[], options: TsImportOptions): Promise;