export { countLines, firstNonEmpty, fmtBytes, fmtDuration, fmtTok, formatMatchHit, numOf, previewArgs, previewOutput, scanNumberedRange, shortenPath, stringOf, truncMid, tryParseJson, } from './basic-format.js'; export { MAX_STREAM_DISPLAY_CHARS, streamBoxRows, ToolStreamBox, tailForDisplay, toolStreamBoxHeight, } from './stream-box.js'; export { ToolOutputLines } from './visual-lines.js'; export type { ToolVisualLine, ToolVisualLineKind } from './tool-visual-types.js'; import type { ToolVisualLine } from './tool-visual-types.js'; export { formatToolArgs } from './tool-arg-format.js'; export { extractSageBlock, resolveEntrySage, type SageSplit, parseSageMemoryLine, type ParsedSageMemoryLine } from './sage-output-format.js'; /** * Like `formatToolOutput` but strips SAGE-injected memory lines first. * Returns the tool output lines and any SAGE block lines separately. */ export declare function formatToolOutputSage(toolName: string, output: string | undefined, ok: boolean, outputBytes?: number | undefined, outputLines?: number | undefined, /** Structured SAGE lines from `tool.executed.sage`, when the entry has them. */ sageLines?: readonly string[] | undefined): { cleanOutput: string; outLines: string[]; sageLines: string[]; }; /** * Distil a tool's result text into 0–N digest lines the renderer can stack. */ export declare function formatToolOutput(toolName: string, output: string | undefined, ok: boolean, _outputBytes?: number | undefined, outputLines?: number | undefined): string[]; /** * Build richer terminal-native rows for common tool outputs. This handles both * raw JSON-shaped results used by unit tests and the compact serializer text * emitted in real sessions. */ export declare function formatToolVisualOutput(toolName: string, output: string | undefined, ok: boolean, input?: unknown | undefined): ToolVisualLine[] | undefined; //# sourceMappingURL=utils.d.ts.map