import { type Component } from "@earendil-works/pi-tui"; import { type DisplayConfigInput } from "./diff/diff-renderer.js"; export declare function toolViewportWidth(width: number): number; export declare function oneLine(value: unknown, max?: number): string; export declare function textFromResult(result: any, expanded?: boolean, maxChars?: number): string; export declare function outputLineCount(result: any): number; export declare function countLines(text: string): number; /** Format arguments as stable, readable `key: value` rows for the Input rail. */ export declare function formatToolInputArgs(args: unknown, maxChars?: number): string; /** Resolve only explicit tool/path or fenced metadata; no command/log heuristics. */ export declare function resolveToolOutputLanguage(args: unknown, output: string): string | undefined; export type ToolIoSection = "input" | "output"; /** Viewer-local adaptation of pi-cc's structured Input/Output tool card. */ export declare class ExpandedToolIoView implements Component { private input; private output; private readonly isError; private readonly maxOutputLines; private readonly maxInputLines; private readonly theme?; private cachedWidth; private cachedLines; private lineSections; private hoveredSection; private showMoreRows; private readonly outputLanguage?; private readonly invalidateCard?; private outputHighlightKey; private outputHighlightState; private readonly onHighlightReady; constructor(input: string, output: string, isError: boolean, maxOutputLines?: number, maxInputLines?: number, theme?: any | undefined, outputLanguage?: string, invalidateCard?: () => void); getInputBody(): string; getOutputBody(): string; private highlightedOutputLines; setHoveredSection(section: ToolIoSection | null): void; sectionAtLine(line: number): ToolIoSection | null; showMoreLine(section: ToolIoSection): number | undefined; render(width: number): string[]; invalidate(): void; } export declare function renderRichToolResult(toolName: string, result: any, options: any, theme: any, context: any): Component | undefined; export declare function createViewerCcstyleResult(toolName: string, result: any, options: any, theme: any, context: any): Component; export type { DisplayConfigInput }; //# sourceMappingURL=tool-result.d.ts.map