export interface ReportHtmlOptions {
/**
* The name of the file to save the report to.
* If not provided, the report will be saved to the current test name.
*/
fileName?: string;
/**
* The duration of the request to be considered as high and highlighted in the report.
* If a function is provided, it will be called with the URL of each request.
*/
highDuration?: number | ((url: URL) => number);
/**
* The directory to save the report to.
*/
outputDir: string;
}
/**
* Creates a network report HTML file from the current test and its network requests.
*
* @param options The options for the report.
*/
export declare const createNetworkReport: (options: ReportHtmlOptions) => void;
/**
* Creates a network report HTML file from a stats file.
*
* @param filePath The path to the stats file.
* @param options The options for the report.
*/
export declare const createNetworkReportFromFile: (filePath: string, options: ReportHtmlOptions) => string;
/**
* Creates a network report HTML file from a folder of stats files.
*
* @param folderPath The path to the folder of stats files.
* @param options The options for the report.
*/
export declare const createNetworkReportFromFolder: (folderPath: string, options: Exclude) => void;