import { ChatCompletionFunctionTool } from "openai/resources.js"; import type { ToolPlugin, ToolContext } from "../tools/types.js"; import type { McpTool, McpServerStatus } from "../types/index.js"; /** * Convert MCP tool to OpenAI function tool format */ export declare function mcpToolToOpenAITool(mcpTool: McpTool, serverName: string): ChatCompletionFunctionTool; /** * Create a tool plugin wrapper for an MCP tool */ export declare function createMcpToolPlugin(mcpTool: McpTool, serverName: string, executeTool: (name: string, args: Record, context?: ToolContext) => Promise<{ success: boolean; content: string; serverName?: string; images?: Array<{ data: string; mediaType?: string; }>; }>): ToolPlugin; /** * Find which server a tool belongs to */ export declare function findToolServer(toolName: string, servers: McpServerStatus[]): McpServerStatus | undefined;