import { type SdkMcpServer } from "@wolpertingerlabs/openrouter-agent-harness";
import type { ToolCallResult, ToolServerSpec } from "../../ports/tools.js";
/**
 * Build an OR-compatible `SdkMcpServer` from a neutral `ToolServerSpec`.
 * Mirrors `buildClaudeCodeToolServer` in the claude-code adapter; the
 * returned value is opaque to callers (typed `unknown` here for the same
 * reason — the port contract treats it as a black-box payload to drop into
 * the engine's tool array).
 */
export declare function buildOpenRouterToolServer(spec: ToolServerSpec): SdkMcpServer;
/**
 * Flatten a callboard `ToolCallResult` into a value OR's runtime can
 * consume. Success → a single string. Error → throw with the stringified
 * payload so the OR runtime surfaces `tool_result.isError = true`.
 *
 * Exported for unit-test access.
 */
export declare function renderToolResult(result: ToolCallResult): string;
//# sourceMappingURL=toolAdapter.d.ts.map