import type { OutputEvent, SubagentProgressMeta } from '../../../agent/types.js'; import type { ToolResultChunk, ToolUseDetailChunk } from '../../../agent/types/message-types.js'; import type { CompletionWriter } from './shared.js'; export interface PlainProgressState { readonly toolStartTimes: Map; readonly subagentStartTimes: Map; readonly subagentLabels: Map; } export declare function createPlainProgressState(): PlainProgressState; export declare function recordToolStart(state: PlainProgressState, chunk: ToolUseDetailChunk): void; export declare function emitPlainToolCompletion(state: PlainProgressState, chunk: ToolResultChunk, toolName: string | undefined, writer: CompletionWriter): void; export declare function observePlainSubagentEvent(state: PlainProgressState, event: OutputEvent, meta: SubagentProgressMeta, writer: CompletionWriter): void;