/** * Compact, human-readable fleet / delegate lines for TUI chat history. * * Goals: * - One short scan line (no raw `Budget exceeded: timeout (limit=…)` dumps) * - Duration that reads as 12s / 2m 51s rather than 171s * - Delegate start shows a tight task preview, not a paragraph */ /** Format a duration for a history chip. */ export declare function formatHistoryDuration(ms: number): string; /** Collapse whitespace and hard-cap a task/description for a single history line. */ export declare function shortenTaskPreview(task: string, maxChars?: number): string; export interface SubagentCompletionLike { status: string; iterations: number; toolCalls: number; durationMs: number; error?: { kind?: string | undefined; message?: string | undefined; } | undefined; } /** * One-line outcome for `subagent.task_completed` (and similar). * * Known budget/timeout kinds drop the raw engine message — the kind + stats * are enough. Unknown failures keep a short message tail when useful. */ export declare function formatSubagentCompletionText(e: SubagentCompletionLike): string; /** * Compact `delegate.started` body. Label already carries the role; this is * just the task preview (or a bare "started" when the task is empty). */ export declare function formatDelegateStartedText(task: string): string; /** * Compact `delegate.completed` body for success. Failures are left to * `subagent.task_completed` so history doesn't print the same death twice. */ export declare function formatDelegateSuccessText(input: { summary?: string | undefined; iterations: number; toolCalls: number; durationMs: number; }): string; //# sourceMappingURL=subagent-history-format.d.ts.map