import { CanActivate, ExecutionContext } from "@nestjs/common"; import { Reflector } from "@nestjs/core"; import { ClsService } from "nestjs-cls"; import { OAuthTokenService } from "../../foundations/oauth/services/oauth.token.service"; import { Neo4jService } from "../../core/neo4j/services/neo4j.service"; import { ModuleRef } from "@nestjs/core"; /** * Combined JWT or OAuth Guard * * Attempts OAuth token validation first, then falls back to JWT. * Enables gradual migration from JWT-only to OAuth-enabled endpoints. * * Usage: * @UseGuards(JwtOrOAuthGuard) * async getResource() { ... } */ export declare class JwtOrOAuthGuard implements CanActivate { private readonly tokenService; private readonly reflector; private readonly cls; private readonly neo4j; private readonly moduleRef; constructor(tokenService: OAuthTokenService, reflector: Reflector, cls: ClsService, neo4j: Neo4jService, moduleRef: ModuleRef); canActivate(context: ExecutionContext): Promise; /** * Attempts OAuth token validation. * @returns true if valid, false if invalid, null if not an OAuth token */ private tryOAuth; } //# sourceMappingURL=jwt.or.oauth.guard.d.ts.map