/** Shared MCP tool-response helpers — same content shape the existing tool * files emit inline; new tool modules use these to cut boilerplate. */ export interface ToolResult { content: Array<{ type: "text"; text: string; }>; isError?: boolean; [key: string]: unknown; } export declare function jsonResult(payload: unknown): ToolResult; export declare function errorResult(message: string, extra?: Record): ToolResult; /** * Map a thrown error to a tool error result. Recognizes the Web API's 403 * (admin-gated operation hit without the admin role) and shapes it into * actionable text instead of a bare status line. */ export declare function errorToResult(err: unknown): ToolResult; /** Wrap a tool handler with the standard try/catch → errorToResult mapping. */ export declare function withToolErrors(fn: (...args: A) => Promise): (...args: A) => Promise; //# sourceMappingURL=respond.d.ts.map