import { TransformResult, WiteDevServer } from 'wite'; import { f as DebuggerOptions, D as DepsHandlingOptions, e as WiteNodeServerOptions, F as FetchResult, d as WiteNodeResolveId, R as RawSourceMap } from './types-83c4f67b.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 WiteNodeServer { server: WiteDevServer; options: WiteNodeServerOptions; private fetchPromiseMap; private transformPromiseMap; fetchCache: Map; externalizeCache: Map>; debugger?: Debugger; constructor(server: WiteDevServer, options?: WiteNodeServerOptions); 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 { WiteNodeServer, guessCJSversion, shouldExternalize };