import type { ProfilerModuleOptions } from '../nest-profiler.builder.js'; import type { Profile } from '../interfaces/profile.interface.js'; import type { ResolvedRedactionConfig } from './redaction-config.js'; import type { SafeDataOptions } from './safe-data.utils.js'; export interface HttpCaptureConfig { collectBody: boolean; maxBodySize: number; bodyCaptureLimits: SafeDataOptions | undefined; redaction: ResolvedRedactionConfig; } export declare function resolveHttpCaptureConfig(options: ProfilerModuleOptions): HttpCaptureConfig; export declare function captureBody(body: unknown, config: HttpCaptureConfig): unknown; export declare function captureHeaders(headers: unknown, config: HttpCaptureConfig): Record; export interface HttpResponseOutcome { statusCode: number; headers?: unknown; body?: unknown; alwaysCaptureBody?: boolean; } export declare function finalizeHttpProfile(profile: Profile, outcome: HttpResponseOutcome, config: HttpCaptureConfig): void;