import type { ImageContent, TextContent } from "@caupulican/pi-ai"; import { Text } from "@caupulican/pi-tui"; import type { Theme } from "../../modes/interactive/theme/theme.ts"; import type { ToolRenderResultOptions } from "../extensions/types.ts"; export declare function shortenPath(path: unknown, cwd?: string): string; export declare function linkPath(styledText: string, rawPath: string, cwd: string): string; export declare function str(value: unknown): string | null; export declare function replaceTabs(text: string): string; export declare function normalizeDisplayText(text: string): string; export declare function getTextOutput(result: { content: Array<{ type: string; text?: string; data?: string; mimeType?: string; }>; } | undefined, showImages: boolean): string; export declare function formatCollapsedToolOutputHint(currentTheme: Theme): string; export type ToolRenderResultLike = { content: (TextContent | ImageContent)[]; details: TDetails; }; export declare function formatCollapsibleToolResult(args: { result: { content: Array<{ type: string; text?: string; data?: string; mimeType?: string; }>; details?: TDetails; }; options: ToolRenderResultOptions; theme: Theme; showImages: boolean; collapsedLineLimit: number; warnings: (details: TDetails | undefined) => string[]; }): string; export declare function toolTextResult(formatted: { text: string; details: TDetails; }): { content: [{ type: "text"; text: string; }]; details: TDetails | undefined; }; export declare function renderTextComponent(lastComponent: unknown, content: string): Text; export declare function invalidArgText(theme: Theme): string; export declare function renderToolPath(rawPath: string | null, theme: Theme, cwd: string, options?: { emptyFallback?: string; }): string; //# sourceMappingURL=render-utils.d.ts.map