import type { McpToolResult } from "../types.js"; import type { OneclawClient } from "../core/client.js"; type ToolArgs = Record; /** * MCP tool dispatcher — routes incoming tool calls to the appropriate * SDK methods and returns structured MCP-compatible results. * * Usage: * ```ts * import { createClient } from "@1claw/sdk"; * import { McpHandler } from "@1claw/sdk/mcp"; * * const client = createClient({ ... }); * const handler = new McpHandler(client); * const result = await handler.handle("1claw_get_secret", { vault_id: "...", key: "..." }); * ``` */ export declare class McpHandler { private readonly client; private handlers; constructor(client: OneclawClient); /** Dispatch a tool call by name. Throws if the tool name is unknown. */ handle(toolName: string, args: ToolArgs): Promise; /** Return the set of tool names this handler supports. */ getToolNames(): string[]; private getSecret; private setSecret; private listSecretKeys; private deleteSecret; private listVaults; private createVault; private requestApproval; private checkApproval; private payAndFetch; private shareSecret; private text; private error; } export {}; //# sourceMappingURL=handler.d.ts.map