/** * TUI renderers for built-in tools. * * These provide rich visualization for tool calls and results in the TUI. */ import type { Component } from "@oh-my-pi/pi-tui"; import type { RenderResultOptions } from "../extensibility/custom-tools/types"; import type { Theme } from "../modes/theme/theme"; type ToolRenderer = { renderCall: (args: unknown, options: RenderResultOptions, theme: Theme) => Component; renderResult: (result: { content: Array<{ type: string; text?: string; }>; details?: unknown; isError?: boolean; }, options: RenderResultOptions & { renderContext?: Record; }, theme: Theme, args?: unknown) => Component; mergeCallAndResult?: boolean; /** Render without background box, inline in the response flow */ inline?: boolean; }; export declare const toolRenderers: Record; export {};