import type { OutputEvent } from '../../agent/types.js'; import type { SourceState } from './stream-renderer-source.js'; import type { TerminalCompositor } from '../terminal-compositor.js'; import type { ToolLane } from '../commands/interactive/tool-lane.js'; import type { Writer } from '../slash/types.js'; import type { CardSpec } from '../render.js'; import { StreamingMarkdownRenderer } from '../markdown-stream.js'; import type { OrchestratorCtx } from './stream-renderer-orchestrator.js'; import { extractLatestThinkingClause, synthesizeAgentEntry } from './stream-renderer-subagent-helpers.js'; export interface SubagentCtx { isTTY: boolean; compositor: TerminalCompositor | null; toolLane: ToolLane; out: Writer; streamingMarkdown: Map; thinkingMode: 'off' | 'summary' | 'live' | 'digest'; orchestratorCtx?: OrchestratorCtx; } export declare function handleSubagentEvent(event: OutputEvent, sourceId: string, source: SourceState, ctx: SubagentCtx): void; export declare function emitSubagentPanel(spec: CardSpec, _sourceId: string, source: SourceState, ctx: SubagentCtx): void; export declare function finalizeSubagent(_sourceId: string, source: SourceState, ctx: SubagentCtx): void; export { extractLatestThinkingClause, synthesizeAgentEntry };