import { RequestHandler } from "express"; import { AuthInfo } from "../schemas/auth.js"; import { DescopeMcpProvider } from "../provider.js"; declare module "express-serve-static-core" { interface Request { /** * Information about the validated access token, if the `requireBearerAuth` middleware was used. */ auth?: AuthInfo; } } /** * Middleware that requires a valid Bearer token in the Authorization header. * * This will validate the token with the auth provider and add the resulting auth info to the request object. * The middleware performs several validations: * - Presence and format of Authorization header * - Required scopes (if specified) * - Token audience (if specified) */ export declare function descopeMcpBearerAuth(provider?: DescopeMcpProvider): RequestHandler; //# sourceMappingURL=bearerAuth.d.ts.map