import type { Tool } from '@modelcontextprotocol/sdk/types.js'; import { type CapabilityDescriptor } from '@xopcai/gateway-contract'; export declare const MCP_SERVER_INSTRUCTIONS: string; export declare function toolName(id: string): string; export declare function describeTool(item: CapabilityDescriptor): Tool; export declare function safeCapabilityHint(error: unknown): string | undefined; export declare function toolFailure(code: string, operationId?: string, hint?: string): { isError: boolean; content: { type: "text"; text: string; }[]; }; export declare function toolResult(data: Record): { content: { type: "text"; text: string; }[]; structuredContent: Record; }; export declare function parseToolArguments(item: CapabilityDescriptor, args?: Record): { input: { [x: string]: unknown; }; idempotencyKey?: undefined; } | { input: { [x: string]: unknown; }; idempotencyKey: string; } | undefined; export declare function scopedMcpIdempotencyKey(principalId: string, capabilityId: string, key?: string): string | undefined;