import { Cursor, MongoRepository, ObjectLiteral } from 'typeorm'; import { ExecutionContext } from '@nestjs/common'; import { LoginAttempt } from './entity/login-attempt.entity'; import { BruteforceGuardConfiguration } from './config/bruteforce-quard.configuration'; import { ExceptionCatcherRegistry } from './catcher/exception-catcher.registry'; export declare class BruteforceGuardService { private readonly repository; readonly config: BruteforceGuardConfiguration; private readonly registry; constructor(repository: MongoRepository, config: BruteforceGuardConfiguration, registry: ExceptionCatcherRegistry); canLogin(context: ExecutionContext): Promise; saveErrorAttempt(context: ExecutionContext, exception: any): Promise; findByFilter(filter: ObjectLiteral): Promise>; getDefaultQuery(filter: ObjectLiteral): Promise>; saveSuccessAttempt(context: ExecutionContext): Promise; save(entity: LoginAttempt): Promise; private getAttemptsCountByLogin; private getAttemptsCountByIP; private getLoginByContext; }