import type { ToolResultChunk } from '../../../agent/types/message-types.js'; import type { DiffPayload } from '../../../utils/diff.js'; export declare function clampLineToTerminal(line: string, cols: number): string; export declare function toolLaneWidth(): number; interface ToolEntryFields { toolUseId: string; toolName: string; toolInput: string; prefix: string; result?: ToolResultChunk; agentContext?: string; agentResultSummary?: string; thinkingTail?: string; diff?: DiffPayload; previewDiff?: DiffPayload; headerEmitted?: boolean; startedAt: number; finishedAt?: number; outputTail?: string; } export type ToolEntry = ToolEntryFields & { kind: 'tool'; }; export declare function freshToolEntry(toolUseId: string, toolName: string, toolInput: string, prefix: string, agentContext?: string): ToolEntry; export interface TextEntry { kind: 'text'; toolUseId: string; text: string; agentContext: string; } export type Entry = ToolEntry | TextEntry; export interface Glyphs { spine: string; spineClosed: string; lead: string; turnRoot: string; midConnector: string; lastConnector: string; textPrefix: string; } export declare const UNICODE_GLYPHS: Readonly; export declare const ASCII_GLYPHS: Readonly; export declare const TREE_CONNECTOR_MID: string; export declare const TREE_CONNECTOR_LAST: string; export declare function getGlyphs(): Readonly; export declare function buildIndent(ancestorIsLast: readonly boolean[], g: Readonly): string; export declare function colorizeIndent(plainIndent: string, g: Readonly): string; export declare function renderTextChildLines(text: string, indent: string, g: Readonly): string[]; export declare function pushOutcomeLines(lines: string[], headPrefix: string, outcomeText: string, continuationIndent: string, cols: number, headSuffix?: string): void; export { assignConnectors, addOverflowSynthetic, addResultSummarySynthetic, type GroupedSibling, type OverflowSibling, type ResultSummarySibling, type RenderableSibling, type ConnectedSibling, } from './tool-lane-render-grouping.js'; export { renderOverlayChildren, renderFlushChildren } from './tool-lane-render-children.js'; export { formatAgentSummary, formatAgentHeader, formatAgentChildren, } from './tool-lane-render-agent.js'; export { renderGroupedRootTools, formatGroupedToolResults, } from './tool-lane-render-grouped-root.js'; export declare function buildChildMap(entries: ReadonlyMap, order: readonly string[]): Map;