import { NestMiddleware } from '@nestjs/common'; import { ClsService } from 'nestjs-cls'; import type { ProfilerModuleOptions } from '../nest-profiler.builder.js'; import type { NextFunction, PlatformRequest, PlatformResponse } from '../types/http.js'; import { ProfilerCoreService } from '../services/profiler-core.service.js'; export declare const DEFAULT_IGNORE_PATHS: (string | RegExp)[]; export declare class ProfilerMiddleware implements NestMiddleware { private readonly cls; private readonly core; private readonly logger; private readonly profilerPath; private readonly capture; private readonly sampleRate; private readonly ignorePaths; private readonly emitDebugHeaders; private readonly ignoreRequest; private readonly alwaysProfile; private readonly debug; private readonly attributesFn; private readonly traceIdHeader; constructor(cls: ClsService, options: ProfilerModuleOptions | undefined, core: ProfilerCoreService); use(req: PlatformRequest, res: PlatformResponse, next: NextFunction): void; private attachFinishHook; private completeProfile; private readStream; private backfillResponseBody; private interceptResponseBody; private shouldSkip; private logSkip; private buildCookieMap; private buildSessionData; private toFilterRequest; private parseCookies; }