import type { ExtensionToolContext } from "@earendil-works/pi-coding-agent"; type ExecuteTool = ExtensionToolContext["executeTool"]; /** Pi retires nested-call IDs when the outer result returns. Drain calls before * returning a yield; later calls wait for the next exec/wait observation. */ export declare class PiToolCallScope { private accepting; private readonly pending; private readonly context; private readonly signal; constructor(context: ExtensionToolContext, signal?: AbortSignal); run(...[name, args, options]: Parameters): ReturnType | undefined; close(): Promise; } export {};