/** * Utilities to work with request metadata and authorization headers. */ /** * Extract the Authorization header from the MCP extra request info. * The lookup is case-insensitive, supports array values taking the first, * and searches common locations used by different transports (HTTP, WS, stdio), * but ONLY from headers-like containers. No query/env/body fallbacks are allowed. * * @param extra - Arbitrary extra payload passed by the MCP runtime. * @returns The raw Authorization header value, or undefined when missing. */ export declare function extractAuthHeader(extra: any): string | undefined; /** * Remove the Bearer prefix from an HTTP Authorization header value. * @param header - Authorization header value. * @returns The stripped token string. */ export declare function stripBearer(header: string): string; //# sourceMappingURL=request.d.ts.map