/**
 * Shared helpers for MCP gateway tools.
 */
import type { McpConnection } from './types.js';
/** Build a standardized error ToolResult from a message string. */
export declare function errorResult(text: string): {
    content: {
        type: "text";
        text: string;
    }[];
    details: undefined;
    isError: true;
};
/** Look up an MCP connection by server name; returns an error string if not found. */
export declare function resolveServer(connections: Map<string, McpConnection>, serverName: string): McpConnection | string;
//# sourceMappingURL=tool-helpers.d.ts.map