import type { Implementation } from "@modelcontextprotocol/server"; /** * Whether the requesting client is a Claude host. * * Matched on the advertised client name only, case-insensitively, as a * substring — the same rule v1 shipped, so servers upgrading from v1 keep * classifying the same clients. * * @param clientInfo - Client identity for the current request, or `undefined` * when the request carried none. * @returns `true` when the client name contains `claude`. */ export declare function isClaudeClient(clientInfo: Partial | undefined): boolean; /** * Derive the `*.claudemcpcontent.com` domain Claude expects for an MCP endpoint. * * The subdomain is the first 32 hex characters of the SHA-256 digest of the * endpoint string verbatim, path included. Idempotent: a value that * already ends in the Claude suffix is returned unchanged. * * @param domain - Full public MCP endpoint URL, verbatim, or a computed domain. * @returns The hashed Claude resource domain. */ export declare function computeClaudeResourceDomain(domain: string): Promise; /** * Rewrite `_meta.ui.domain` to its Claude form when the reading client is * Claude. * * Returns `meta` unchanged for every other client, and for a Claude client * when the view declares no domain. Only `domain` is replaced — the rest of * `_meta` and of `_meta.ui` passes through untouched. * * @param meta - Resource `_meta` as built for this read. * @param clientInfo - Client identity for the current request. * @param userAgent - HTTP user-agent fallback for legacy requests that carry * no per-request client identity. * @param mcpEndpoint - Full public MCP endpoint, including its path. When * unavailable, retains the legacy behavior of hashing the authored domain. * An already computed Claude domain is preserved for compatibility. * @returns Resource `_meta` to send on the wire. */ export declare function applyClaudeResourceDomain(meta: Record, clientInfo: Partial | undefined, userAgent?: string | null, mcpEndpoint?: string): Promise>;