import type { DebugSessionManager, SdapiScriptThread, SourceMapper } from '@salesforce/b2c-tooling-sdk/operations/debug'; import type { CartridgeMapping } from '@salesforce/b2c-tooling-sdk/operations/code'; export interface DebugRpcOptions { cartridges: CartridgeMapping[]; input: NodeJS.ReadableStream; manager: DebugSessionManager; output: NodeJS.WritableStream; sourceMapper: SourceMapper; } export declare class DebugRpc { private readonly cartridges; private currentFrameIndex; private currentThreadId?; private readonly input; private readonly manager; private readonly output; private resolveRun?; private readonly sourceMapper; constructor(options: DebugRpcOptions); onThreadStopped(thread: SdapiScriptThread): void; run(): Promise; private emitEvent; private getThread; private handleCommand; private handleMessage; /** Resolve a thread_id arg, falling back to the currently selected thread. */ private resolveThreadId; private sendResponse; }