import { type DelegateRequestMessage } from "./host-protocol.js"; import type { CodeModeToolDefinition, RuntimeResponse, ToolExecutionContext } from "./types.js"; type SendMessage = (message: unknown) => void; export declare class CodeModeDelegateRuntime { private readonly traceRuntimeGeneration; private readonly cellContexts; private readonly cellTools; private readonly controllers; private readonly notifications; private readonly traces; private readonly cleanupTimers; private readonly send; constructor(send: SendMessage); bindCell(cellId: string, context: ToolExecutionContext, tools?: Map): void; updateCellContext(cellId: string, context: ToolExecutionContext): void; closeCell(cellId: string): void; clear(): void; cancel(id: number): void; cancelCell(cellId: string): void; handleRequest(message: DelegateRequestMessage): void; invokeDirect(cellId: string, requestId: number, toolName: string, input: unknown): Promise; notifyDirect(cellId: string, value: string): void; attach(response: RuntimeResponse): RuntimeResponse; private invoke; private invokeTool; private handleNotification; private respond; } export {};