import { type Theme } from "@earendil-works/pi-coding-agent"; import { Box, Text } from "@earendil-works/pi-tui"; export declare function renderToolCall(toolName: string): (_args: unknown, theme: Theme) => Text; /** Collapsed preview length (chars). */ export declare const COLLAPSED_PREVIEW_CHARS = 1500; /** Default page size for expanded results (chars). */ export declare const DEFAULT_PAGE_CHARS = 4000; export type RenderOptions = { expanded?: boolean; isPartial?: boolean; }; export type MarkdownTheme = { heading: (text: string) => string; link: (text: string) => string; linkUrl: (url: string) => string; code: (text: string) => string; codeBlock: (text: string) => string; codeBlockBorder: (text: string) => string; quote: (text: string) => string; quoteBorder: (text: string) => string; hr: (text: string) => string; listBullet: (text: string) => string; bold: (text: string) => string; italic: (text: string) => string; strikethrough: (text: string) => string; underline: (text: string) => string; }; /** Map Pi Theme → MarkdownTheme for pi-tui Markdown component. */ export declare function toMarkdownTheme(theme: Theme): MarkdownTheme; export type PaginatedText = { page: string; totalChars: number; totalPages: number; }; /** Paginate long text for expanded view; collapsed returns a short preview. */ export declare function paginateText(text: string, expanded: boolean, theme: Theme, pageChars?: number): PaginatedText; export declare function renderWebsearchResult(result: { content?: Array<{ type?: string; text?: string; }>; }, options: RenderOptions, theme: Theme, _context: unknown): Box; export declare const renderCodesearchResult: typeof renderWebsearchResult; export declare function renderWebFetchResult(result: { content?: Array<{ type?: string; text?: string; }>; }, options: RenderOptions, theme: Theme, _context: unknown): Box; export declare function renderContext7Result(result: { content?: Array<{ type?: string; text?: string; }>; }, options: RenderOptions, theme: Theme, _context: unknown): Box; export declare function renderDeepwikiResult(result: { content?: Array<{ type?: string; text?: string; }>; }, options: RenderOptions, theme: Theme, _context: unknown): Box; export declare function renderFetchContentResult(result: { content?: Array<{ type?: string; text?: string; }>; }, options: RenderOptions, theme: Theme, _context: unknown): Box; //# sourceMappingURL=render.d.ts.map