import Redis from "ioredis"; import { ApiDefs } from "./interfaces/api-defs.interface"; import { APIOperationStats } from "./interfaces/api-operation-stats.interface"; import { ApiStats } from "./interfaces/api-stats.interface"; import { HTTPMethod } from "./interfaces/http-method.interface"; import { SwsRequest } from "./interfaces/request.interface"; import { SwsResponse } from "./interfaces/response.interface"; export declare class SwsAPIStats { private readonly redis; private debug; private options; private basePath; private apiMatchIndex; private apidefs; private apistats; private apidetails; private durationBuckets; private requestSizeBuckets; private responseSizeBuckets; private promClientMetrics; constructor(redis: Redis); getAPIDefs(): ApiDefs; getAPIStats(): Promise; getAPIOperationStats(path: string, method: HTTPMethod): Promise; private initBasePath; private getFullPath; initialize(swsOptions: any): Promise; private processParameters; private processSingleParameter; private getApiOpDetails; private getAPIOpStats; tick(totalElapsedSec: number): Promise; private extractPathParams; matchRequest(req: SwsRequest): void; private countParametersStats; getApiOpParameterValues(path: string, method: HTTPMethod, req: SwsRequest): { [key: string]: string; } | null; countRequest(req: SwsRequest): Promise; countResponse(res: SwsResponse): Promise; }