import Redis from "ioredis"; export declare class SwsReqResStats { private readonly apdexThreshold; private readonly redis; private readonly redisKey; constructor(apdexThreshold: number | undefined, redis: Redis, redisKey: string); init(): Promise; getStats(): Promise; countRequest(clength: number): Promise; countResponse(code: number, codeclass: any, duration: number, clength: number): Promise; updateRates(elapsed: number): Promise; }