import type { ToolResult } from "../pi.js"; /** Wrap guarded text as a pi tool result (content-blocks contract). */ export declare function textResult(text: string, details?: unknown): ToolResult; /** First text block of a tool result, for tests and internal use. */ export declare function resultText(result: { content?: unknown; }): string; export type ToolInfo = { name: string; description?: string; inputSchema?: unknown; }; export declare const MAX_RESULT_CHARS: number; /** Render a tool's full describe block. */ export declare function renderDescribe(tool: ToolInfo, server: string | undefined): string; /** Render a one-line search hit. */ export declare function renderSearchHit(tool: ToolInfo): string; export declare function renderToolResult(result: unknown): string; /** Extract a short first line for compact call-result rendering in the transcript. */ export declare function resultFirstLine(text: string): string; /** The ui:// resource a tool result carries (port of the adapter's * getToolUiResourceUri): `_meta["ui/resourceUri"]` or `_meta.ui.resourceUri`. */ export declare function toolUiResourceUri(result: unknown): string | undefined; /** MCP readResource result → guarded plain text: text contents pass through * (pretty-printed when small JSON; with the shared size guard), images become * markers, base64 blobs become byte notes. */ export declare function renderResourceResult(result: unknown): string; //# sourceMappingURL=render.d.ts.map