import { CanActivate, ExecutionContext } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; import { CommandBus } from '@nestjs/cqrs'; import { Cache } from 'cache-manager'; export declare class PermissionGuard implements CanActivate { #private; private cacheManager; private readonly _reflector; private readonly _commandBus; constructor(cacheManager: Cache, _reflector: Reflector, _commandBus: CommandBus); /** * Checks if the user is authorized based on specified permissions. * @param context The execution context. * @returns A promise that resolves to a boolean indicating authorization status. */ canActivate(context: ExecutionContext): Promise; }