import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; import type { TelemetryPort } from "../ports/telemetry.port.js"; /** Compact JSON - indentation is pure token cost on this path. */ export declare function ok(payload: unknown): CallToolResult; export declare function fail(err: unknown): CallToolResult; /** * Every tool goes through here so a thrown Jira error becomes a normalized code * instead of a stack trace, and failures still show up in telemetry. */ export declare function runTool(tool: string, telemetry: TelemetryPort, fn: () => Promise): Promise;