import { type GeistdocsConfig } from "../config.js"; interface ToolExecutionContext { signal?: AbortSignal; } interface WebMCPTool { annotations: { readOnlyHint: boolean; untrustedContentHint: boolean; }; description: string; execute: (input: Record, context?: ToolExecutionContext) => Promise; inputSchema: Record; name: string; } export interface WebMCPContext { registerTool: (tool: WebMCPTool, options: { signal: AbortSignal; }) => Promise; } interface WebMCPOptions { config: GeistdocsConfig; fetcher?: typeof fetch; lang?: string; location: Pick; requestTimeoutMs?: number; } export declare const createWebMCPTools: ({ config, fetcher, lang, location, requestTimeoutMs, }: WebMCPOptions) => WebMCPTool[]; export declare const registerWebMCPTools: (context: WebMCPContext, tools: WebMCPTool[], onError: (error: unknown) => void) => () => void; export {}; //# sourceMappingURL=webmcp.d.ts.map