import type { AssistantMessage, Message, ToolCall } from "../types"; import type { DialectRenderOptions, DialectToolResult } from "./types"; export declare function renderToolResponseResults(results: readonly DialectToolResult[]): string; export declare function kimiCallId(name: string, id: string, index: number): string; export declare function harmonyRecipient(name: string): string; export declare function stringifyJson(value: unknown): string; export declare function escapeXmlAttr(value: string): string; export declare function escapeXmlText(value: string): string; export type AssistantTranscriptParts = { readonly text: string; readonly thinking: string; readonly toolCalls: readonly ToolCall[]; }; export type ToolCallRenderer = (calls: readonly ToolCall[], options?: DialectRenderOptions) => string; export type ToolResultRenderer = (results: readonly DialectToolResult[], options?: DialectRenderOptions) => string; export type ChatMlTranscriptConfig = { readonly bos?: string; readonly toolResultRole: "tool" | "user"; readonly renderThinking: (text: string) => string; readonly renderCalls: ToolCallRenderer; readonly renderResultsBody: ToolResultRenderer; }; export type LegacyTextTranscriptConfig = { readonly renderThinking: (text: string) => string; readonly renderCalls: ToolCallRenderer; readonly renderResults: ToolResultRenderer; }; export declare function renderChatMlTranscript(messages: readonly Message[], options: DialectRenderOptions, config: ChatMlTranscriptConfig): string; export declare function renderLegacyTextTranscript(messages: readonly Message[], options: DialectRenderOptions, config: LegacyTextTranscriptConfig): string; export declare function assistantTranscriptParts(message: AssistantMessage): AssistantTranscriptParts; export declare function collectToolResultRun(messages: readonly Message[], start: number): { readonly results: readonly DialectToolResult[]; readonly next: number; }; export declare function messageContentText(content: string | readonly { readonly type: string; readonly text?: string; readonly mimeType?: string; }[]): string; export declare function renderDelimitedThinking(open: string, close: string, text: string): string; export declare function chatMlTurn(role: "assistant" | "system" | "tool" | "user", body: string): string; export declare function kimiTurn(role: "assistant" | "system" | "user", name: string, body: string): string; export declare function gemmaTurn(role: "model" | "system" | "user", body: string): string; export declare function geminiTurn(role: "model" | "user", body: string): string; export declare function joinUserBodies(left: string, right: string): string;