import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; /** * Recursively drop `$schema` string members. Returns the input **by identity** * when there is nothing to strip, so a future SDK that stops emitting the * declaration costs no allocation at all. * * The `typeof === "string"` guard matters: a dialect declaration is always a * string URI, whereas a *property named* `$schema` inside a `properties` map * would be a schema **object**. Without the guard this would silently delete * such a property from the advertised input shape. */ export declare function stripSchemaDialect(value: T): T; /** * Remove the JSON Schema dialect declaration from `tools/list` responses. * * MUST be called before the first `registerTool` on this server: it works by * intercepting the `setRequestHandler` call the SDK makes when it lazily * installs the `tools/list` handler. */ export declare function installSchemaDialectCompat(server: McpServer): void; //# sourceMappingURL=schema-dialect.d.ts.map