import { ExtendedToolExecutionResult } from './types.js'; /** * 工具格式化器接口 */ export interface IToolFormatter { name: string; supportedTools: string[]; format(result: ExtendedToolExecutionResult): string; formatError(error: Error): string; } /** * 工具格式化器注册表 */ export declare class ToolFormatterRegistry { private formatters; private defaultFormatter; constructor(); /** * 注册内置格式化器 */ private registerBuiltinFormatters; /** * 注册格式化器 */ register(formatter: IToolFormatter): void; /** * 获取格式化器 */ getFormatter(toolName: string): IToolFormatter; /** * 格式化工具结果 */ format(toolName: string, result: ExtendedToolExecutionResult): string; /** * 格式化错误 */ formatError(toolName: string, error: Error): string; /** * 获取支持的工具列表 */ getSupportedTools(): string[]; /** * 获取格式化器信息 */ getFormatterInfo(): Array<{ name: string; tools: string[]; }>; } //# sourceMappingURL=ToolFormatterRegistry.d.ts.map