export type ReportAttachment = { name: string; contentType: string; path?: string; body?: string; }; interface JSONReportTestResult { attachments: ReportAttachment[]; } interface JSONReportTest { results: JSONReportTestResult[]; } interface JSONReportSpec { id: string; tests: JSONReportTest[]; } interface JSONReportSuite { specs: JSONReportSpec[]; suites?: JSONReportSuite[]; } export interface SummaryJsonReport { suites: JSONReportSuite[]; } interface HTMLReportResult { attachments: ReportAttachment[]; [key: string]: unknown; } interface HTMLReportTest { testId: string; results: HTMLReportResult[]; [key: string]: unknown; } interface HTMLReportFile { tests: HTMLReportTest[]; [key: string]: unknown; } interface HTMLReport { files?: HTMLReportFile[]; tests?: HTMLReportTest[]; [key: string]: unknown; } export type TestAttachmentMap = Map; export declare function traverseJsonReportSuites(summaryJson: SummaryJsonReport, specFn: (spec: JSONReportSpec) => void): void; export interface BuildAttachmentMapOptions { /** Transform each attachment before storing in the map. Default: identity */ transformAttachment?: (attachment: ReportAttachment) => ReportAttachment; } export declare function buildTestAttachmentMap(summaryJson: SummaryJsonReport, options?: BuildAttachmentMapOptions): TestAttachmentMap; export declare function replaceMediaPaths(htmlReportJson: HTMLReport, testAttachmentMap: TestAttachmentMap): void; export {}; //# sourceMappingURL=html-report-utils.d.ts.map