/** * Window events both chat transports dispatch while the agent works. The * classic SSE processor and the AgentKit chat bridge emit the same shapes. */ export declare const TOOL_INPUT_EVENT = "agent-native:tool-input"; export declare const TOOL_DONE_EVENT = "agent-native:tool-done"; export interface ToolInputEventDetail { phase?: "start" | "delta"; tool?: string; id?: string; /** Every argument character received so far for this call. */ argsText?: string; text?: string; tabId?: string; } export interface ToolDoneEventDetail { tool?: string; result?: unknown; isError?: boolean; completedSideEffect?: boolean; tabId?: string; /** The finished tool call's id, the same id its input streamed under. */ toolCallId?: string; /** * The event's own id. On the SSE transport this is the run frame, not the * tool call, so match calls by `toolCallId`. */ eventId?: string; }