import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { IClipboardService } from "@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service"; import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service"; import { IChatDebugEventToolCallContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService"; export declare function tryParseJSON(text: string): { parsed: unknown; isJSON: true; } | { isJSON: false; }; /** * Format and syntax-highlight a content string. * When the content is valid JSON it is pretty-printed and tokenized as JSON; * otherwise it is tokenized as markdown. */ export declare function tokenizeContent(text: string, languageService: ILanguageService): Promise<{ plainText: string; tokenizedHtml: string; }>; /** * Render a collapsible section. When `tokenizedHtml` is provided the content * is rendered as syntax-highlighted HTML; otherwise plain-text is used. * Optionally adds a copy button when `clipboardService` is provided. */ export declare function renderSection(parent: HTMLElement, label: string, plainText: string, tokenizedHtml: string | undefined, disposables: DisposableStore, initiallyCollapsed?: boolean, clipboardService?: IClipboardService, scrollable?: { scanDomNode(): void; }): void; /** * Render a resolved tool call content with structured sections for * tool name, status, duration, arguments, and output. * Reuses the existing message content and collapsible section components. * When JSON is detected in input/output, renders it with syntax highlighting * using the editor's tokenization. */ export declare function renderToolCallContent(content: IChatDebugEventToolCallContent, languageService: ILanguageService, clipboardService?: IClipboardService, scrollable?: { scanDomNode(): void; }): Promise<{ element: HTMLElement; disposables: DisposableStore; }>; /** * Convert a resolved tool call content to plain text for clipboard / editor output. */ export declare function toolCallContentToPlainText(content: IChatDebugEventToolCallContent): string;