import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; export interface FakeTool { config: any; cb: (args: any, extra: any) => Promise; enabled: boolean; } export interface FakeResource { name: string; uriOrTemplate: any; config: any; cb: (...a: any[]) => Promise; } export interface FakeServerHandle { server: McpServer; tools: Map; resources: Map; prompts: Map; listChanged: number; /** what server.server.getClientCapabilities() returns; default {} (no elicitation) */ clientCapabilities: Record; } /** Thrown by the fake when a tool call does not match its declared schemas. */ export declare class SchemaViolation extends Error { } export declare function fakeServer(): FakeServerHandle; /** Minimal RequestHandlerExtra for calling a tool callback directly. */ export declare function fakeExtra(): any;