import { Hono } from "hono"; import * as _$ws from "ws"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { z } from "zod"; import { ParamDef } from "@open-pencil/core/tools"; import * as _$hono_types0 from "hono/types"; import * as _$http from "http"; //#region src/result.d.ts type MCPContent = { type: 'text'; text: string; } | { type: 'image'; data: string; mimeType: string; }; type MCPResult = { content: MCPContent[]; isError?: boolean; }; declare function ok(data: unknown): MCPResult; declare function fail(e: unknown): MCPResult; //#endregion //#region src/tool/registration.d.ts type RpcSender = (body: Record) => Promise; interface RegisterToolsOptions { enableEval: boolean; mcpRoot?: string | null; sendRpc: RpcSender; } declare function registerTools(mcpServer: McpServer, options: RegisterToolsOptions): void; //#endregion //#region src/tool/schema.d.ts declare function paramToZod(param: ParamDef): z.ZodType; //#endregion //#region src/server.d.ts declare const MCP_VERSION: string; interface ServerOptions { httpPort?: number; wsPort?: number; enableEval?: boolean; mcpRoot?: string | null; authToken?: string | null; corsOrigin?: string | null; } declare function startServer(options?: ServerOptions): { app: Hono<_$hono_types0.BlankEnv, _$hono_types0.BlankSchema, "/">; wss: _$ws.Server; httpPort: number; close: () => void; }; //#endregion export { type MCPContent, type MCPResult, MCP_VERSION, type RegisterToolsOptions, type RpcSender, ServerOptions, fail, ok, paramToZod, registerTools, startServer }; //# sourceMappingURL=server.d.mts.map