import type { NextFunction, Request, Response } from 'express'; import type { AuthManager } from '../AuthManager.js'; /** * Ensures at least one configured guard successfully authenticates the request. */ export declare class AuthMiddleware { private readonly auth; /** * @param auth - Authentication manager. */ constructor(auth: AuthManager); /** * Express middleware factory (`auth`, `auth:api`, ...). * * @param guards - Guard names to try in order; defaults to the configured default guard. */ handle(guards?: string[]): (req: Request, res: Response, next: NextFunction) => Promise; } //# sourceMappingURL=AuthMiddleware.d.ts.map