import { type Alias } from '@modern-js/utils'; import type { ConfigChain } from '@rsbuild/core'; type TsRuntimeRegisterMode = 'node-loader' | 'unsupported'; interface TsRuntimeSetupOptions { moduleType?: string; /** * User-configured `server.tsconfigPath`. Forwarded into the shared * resolveServerTsconfig helper. Resolved relative to appDir when not * absolute. Falls back to `/tsconfig.json` when unset. */ tsconfigPath?: string; } export declare const resolveTsRuntimeRegisterMode: () => TsRuntimeRegisterMode; /** * Setup TypeScript runtime support. * Register Node-native TypeScript path alias resolution. */ export declare const setupTsRuntime: (appDir: string, distDir: string, alias?: ConfigChain, options?: TsRuntimeSetupOptions) => Promise; export {};