/** * @license * Copyright 2025 Vybestack LLC * SPDX-License-Identifier: Apache-2.0 */ import type { Config } from '../../config/config.js'; import type { ToolResponseBlock } from '../../services/history/IContent.js'; export declare function formatToolResponseText(params: { status: 'success' | 'error'; toolName?: string; error?: string; output?: string; }): string; export interface ToolResponsePayload { status: 'success' | 'error'; toolName?: string; result: string; error?: string; truncated?: boolean; originalLength?: number; limitMessage?: string; } export declare const EMPTY_TOOL_RESULT_PLACEHOLDER = "[no tool result]"; export declare function humanizeJsonForDisplay(value: unknown): string | undefined; export declare function buildToolResponsePayload(block: ToolResponseBlock, config?: Config, humanizeJson?: boolean): ToolResponsePayload;