import { NestMiddleware } from '@nestjs/common'; import { OpenTelemetryModuleOptions } from '../interfaces'; import { MetricService } from '../metrics/metric.service'; export declare const DEFAULT_LONG_RUNNING_REQUEST_BUCKETS: number[]; export declare const DEFAULT_REQUEST_SIZE_BUCKETS: number[]; export declare const DEFAULT_RESPONSE_SIZE_BUCKETS: number[]; export declare class ApiMetricsMiddleware implements NestMiddleware { private readonly _metricService; private readonly _options; private readonly _defaultLongRunningRequestBuckets; private readonly _defaultRequestSizeBuckets; private readonly _defaultResponseSizeBuckets; private _requestTotal; private _responseTotal; private _responseSuccessTotal; private _responseErrorTotal; private _responseClientErrorTotal; private _responseServerErrorTotal; private _serverAbortsTotal; private _requestDuration; private _requestSizeHistogram; private _responseSizeHistogram; private readonly _defaultAttributes; private readonly _ignoreUndefinedRoutes; constructor(_metricService: MetricService, _options?: OpenTelemetryModuleOptions); private static _getStatusCodeClass; use(parentReq: any, parentRes: any, parentNext: any): void; }