/** * TUI renderer for the `subagent` tool. * * The await panel surfaces each awaited subagent's live streaming status at * parity with the inline `task` panel by reusing `renderSubagentLiveProgress`. * Falls back to a `running, no activity yet` placeholder when a live producer * exists but has not emitted yet, and to a static status line when no live * producer is available (resumed-from-disk or backward-compat records). */ import type { Component } from "@gajae-code/tui"; import type { RenderResultOptions } from "../extensibility/custom-tools/types"; import type { Theme } from "../modes/theme/theme"; import { type SubagentToolDetails } from "./subagent"; export { subagentAwaitRenderedStateSignature } from "./subagent"; /** Test-only seam (PR3 deterministic cache-hit assertions). */ export declare const subagentBodyCacheTestHooks: { readonly bodyRenders: number; readonly size: number; reset(): void; }; export declare const subagentToolRenderer: { inline: boolean; renderCall(_args: unknown, _options: RenderResultOptions, theme: Theme): Component; renderResult(result: { content: Array<{ type: string; text?: string; }>; details?: SubagentToolDetails; }, options: RenderResultOptions, theme: Theme): Component; mergeCallAndResult: boolean; };