UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

13 lines (12 loc) 483 B
import { Token } from "./Token"; import { Event } from "./Event"; import { ReportingAPI, ReportingAPIResponse } from "./ReportingAPI"; export declare class ReportingAPIForTesting implements ReportingAPI { private result; private events; constructor(result?: ReportingAPIResponse); setResult(result: ReportingAPIResponse): void; report(token: Token, event: Event, timeoutInMS: number): Promise<ReportingAPIResponse>; clear(): void; getEvents(): Event[]; }