import type { CodeModeToolDefinition, RuntimeResponse, ToolExecutionContext } from "./types.js"; export { scopeAllToolsToDeferredCustom } from "./tool-source.js"; type HostClientOptions = { binary: string; tools: CodeModeToolDefinition[]; shutdownGraceMs?: number | undefined; }; export declare class CodeModeHostClient { private readonly tools; private readonly session; private readonly delegation; private readonly cells; constructor(options: HostClientOptions); start(): Promise; execute(source: string, context: ToolExecutionContext, signal?: AbortSignal, tools?: CodeModeToolDefinition[]): Promise; wait(cellId: string, yieldTimeMs: number, context: ToolExecutionContext, signal?: AbortSignal): Promise; terminate(cellId: string, context: ToolExecutionContext, signal?: AbortSignal): Promise; shutdown(): Promise; }