import { TransformResult, ViteDevServer } from 'vite'; import { f as DebuggerOptions, D as DepsHandlingOptions, e as ViteNodeServerOptions, F as FetchResult, d as ViteNodeResolveId, R as RawSourceMap } from './types-63205a44.js'; declare class Debugger { options: DebuggerOptions; dumpDir: string | undefined; initPromise: Promise | undefined; externalizeMap: Map; constructor(root: string, options: DebuggerOptions); clearDump(): Promise; encodeId(id: string): string; recordExternalize(id: string, path: string): Promise; dumpFile(id: string, result: TransformResult | null): Promise; loadDump(id: string): Promise; writeInfo(): Promise; } declare function guessCJSversion(id: string): string | undefined; declare function shouldExternalize(id: string, options?: DepsHandlingOptions, cache?: Map>): Promise; declare class ViteNodeServer { server: ViteDevServer; options: ViteNodeServerOptions; private fetchPromiseMap; private transformPromiseMap; fetchCache: Map; externalizeCache: Map>; debugger?: Debugger; constructor(server: ViteDevServer, options?: ViteNodeServerOptions); shouldExternalize(id: string): Promise; resolveId(id: string, importer?: string): Promise; getSourceMap(source: string): RawSourceMap | null; fetchModule(id: string): Promise; transformRequest(id: string): Promise; getTransformMode(id: string): "web" | "ssr"; private _fetchModule; private _transformRequest; } export { ViteNodeServer, guessCJSversion, shouldExternalize };