import { CanActivate, ExecutionContext } from '@nestjs/common'; import { JwtPayload } from '../core/auth'; export declare class GqlAdminAuthGuard implements CanActivate { canActivate(context: ExecutionContext): Promise; } declare const GqlAuthGuard_base: import("@nestjs/passport").Type; /** * return null if anonymousSupport is true and user authenticate is failed */ export declare class GqlAuthGuard extends GqlAuthGuard_base { private readonly opts; /** * @param opts.anonymousSupport default false */ constructor(opts?: { anonymousSupport: boolean; }); handleRequest(err: any, user: any, info: any): any; /** * In order to use AuthGuard together with GraphQL, * you have to extend the built-in AuthGuard class and override getRequest() method. * @param context */ getRequest(context: ExecutionContext): any; } export declare type GetCurrentUser = () => JwtPayload; export {};