import { DebugStreamConnection } from '@opensumi/ide-debug';
import { CustomChildProcessModule } from '../../../../common/ext.process';
import type vscode from 'vscode';
/**
 * 启动调试适配器进程
 */
export declare function startDebugAdapter(executable: vscode.DebugAdapterExecutable, cp?: CustomChildProcessModule): DebugStreamConnection;
/**
 * 链接远程调试服务
 */
export declare function connectDebugAdapter(server: vscode.DebugAdapterServer): DebugStreamConnection;
/**
 * 直接调用插件自己实现的调试适配器
 * 这里通过 server 服务来拉起适配器
 * Modify directDebugAdapter to directly interface with DebugStreamConnection
 */
export declare function directDebugAdapter(id: string, da: vscode.DebugAdapter): DebugStreamConnection;
/**
 * 通过 NamedPipe(在 Windows) 或者 UNIX Domain Socket(IPC socket)(非 Windows) 连接到适配器的实现
 */
export declare function namedPipeDebugAdapter(server: vscode.DebugAdapterNamedPipeServer): DebugStreamConnection;
//# sourceMappingURL=extension-debug-adapter-starter.d.ts.map