import { CanActivate, ExecutionContext } from "@nestjs/common"; import { Reflector } from "@nestjs/core"; import { ClsService } from "nestjs-cls"; import { OAuthTokenService } from "../services/oauth.token.service"; /** * OAuth Token Guard * * Protects endpoints using OAuth2 Bearer tokens. * Validates the token and checks required scopes. * * Usage: * @UseGuards(OAuthTokenGuard) * @OAuthScopes('photographs:read') * async getPhotographs() { ... } */ export declare class OAuthTokenGuard implements CanActivate { private readonly tokenService; private readonly reflector; private readonly cls; constructor(tokenService: OAuthTokenService, reflector: Reflector, cls: ClsService); canActivate(context: ExecutionContext): Promise; /** * Extracts the Bearer token from the Authorization header. */ private extractToken; /** * Checks if the token's scopes include all required scopes. */ private hasRequiredScopes; } //# sourceMappingURL=oauth.token.guard.d.ts.map