/** * Subagent execution rendering component. * Shows real-time activity from a delegated subagent task using * the same bordered box style as shell/view tools: * - Top border * - Task description (always visible) * - Streaming tool call activity (capped rolling window) * - Bottom border with agent type, model, status, duration */ import { Container } from '@mariozechner/pi-tui'; import type { TUI } from '@mariozechner/pi-tui'; import type { ChatSpacingKind } from './chat-spacing.js'; import type { IToolExecutionComponent } from './tool-execution-interface.js'; export interface SubagentToolCall { name: string; args: unknown; result?: string; isError?: boolean; done: boolean; } export interface SubagentExecutionOptions { /** When true, auto-collapse to a single summary line on completion. Default false. */ collapseOnComplete?: boolean; /** True when this subagent is running on a forked copy of the parent thread. */ forked?: boolean; /** When true, show full completed content including the final result. Default false. */ expandOnComplete?: boolean; } export declare class SubagentExecutionComponent extends Container implements IToolExecutionComponent { private ui; private agentType; private task; private modelId?; private toolCalls; private done; private isError; private startTime; private durationMs; private finalResult?; private expanded; private collapseOnComplete; private expandOnComplete; private forked; constructor(agentType: string, task: string, ui: TUI, modelId?: string, options?: SubagentExecutionOptions); addToolStart(name: string, args: unknown): void; addToolEnd(name: string, result: unknown, isError: boolean): void; finish(isError: boolean, durationMs: number, result?: string): void; setExpanded(expanded: boolean): void; toggleExpanded(): void; updateArgs(_args: unknown): void; updateResult(_result: unknown, _isPartial: boolean): void; getChatSpacingKind(): ChatSpacingKind; private rebuild; } //# sourceMappingURL=subagent-execution.d.ts.map