/** A tool exposed to the browser's WebMCP model context. */ export interface WebMcpToolSpec { name: string; description: string; inputSchema: Record; annotations?: { readOnlyHint?: boolean; untrustedContentHint?: boolean; }; execute: (args: Record) => string | Promise; } declare global { interface Document { modelContext?: WebMcpModelContext; } interface WebMcpModelContext { registerTool(tool: WebMcpToolSpec, options?: { signal?: AbortSignal; }): void; } } /** * Register a component-owned WebMCP intent for exactly that component's * lifetime. The factory runs inside the effect so rune dependencies used by a * bespoke intent cause the tool to be replaced when its spec changes. */ export declare function useWebMcpTool(factory: () => WebMcpToolSpec | null | undefined): void; //# sourceMappingURL=webmcp.svelte.d.ts.map