UNPKG

974 BTypeScriptView Raw
1import { CanActivate, ExecutionContext } from '@nestjs/common';
2import { Reflector } from '@nestjs/core';
3import { Observable } from 'rxjs';
4import { Configuration } from '../index';
5export declare const Roles: (...roles: string[]) => (target: object, key?: any, descriptor?: any) => any;
6export declare const AllowAnonymous: () => (target: object, key?: any, descriptor?: any) => any;
7export declare const Task: () => (target: object, key?: any, descriptor?: any) => any;
8export declare const Cron: () => (target: object, key?: any, descriptor?: any) => any;
9export declare const System: () => (target: object, key?: any, descriptor?: any) => any;
10export declare class AuthGuard implements CanActivate {
11 private readonly reflector;
12 private readonly configurationProvider;
13 private logger;
14 constructor(reflector: Reflector, configurationProvider: Configuration);
15 canActivate(context: ExecutionContext): boolean | Promise<boolean> | Observable<boolean>;
16}