/// import type express from 'express'; import * as http from 'http'; import { type AppendEntryAndSaveHarFn } from './harUtils'; /** * Middleware factory that records an HTTP request-response transaction and saves it in a HAR file. * * @param {string} harFilePath - The file path to save the HAR file. * @param {AppendEntryAndSaveHarFn} appendEntryAndSaveHar - Function to append the new entry and save the HAR file. * @param {string} targetUrl - The prefix for the HAR playback endpoint. * @returns {function} Custom proxy response handler. */ export declare const recorderHarMiddleware: (harFilePath: string, appendEntryAndSaveHar: AppendEntryAndSaveHarFn, targetUrl: string) => (proxyRes: http.IncomingMessage, req: express.Request, res: express.Response) => void;