/**
 * @fileoverview Shared types for authentication middleware.
 * @module src/mcp-server/transports/authentication/types
 */
import type { AuthInfo as SdkAuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js";
/**
 * Defines the structure for authentication information derived from a token.
 * It extends the base SDK type to include common optional claims.
 */
export type AuthInfo = SdkAuthInfo & {
    subject?: string;
};
declare module "http" {
    interface IncomingMessage {
        auth?: AuthInfo;
    }
}
