import type { TestResultStatus } from "@empiricalrun/shared-types/analytics"; import type { JSONReport, JSONReportSpec, JSONReportSuite } from "@playwright/test/reporter"; export type { JSONReport, JSONReportSpec, JSONReportSuite }; export type { TestResultStatus }; export type FlattenedSpec = JSONReportSpec & { nesting: string[]; suitesString: string; }; export declare function getFlattenedTestList(suites: JSONReportSuite[]): FlattenedSpec[]; export declare function fetchReport(url: string): Promise; export declare function getTestDurations(results: { duration: number; }[]): { retries: number; duration_total: number; duration_per_retry: number; }; export interface ParsedTestResult { test_case_id: string; status: TestResultStatus; retries: number; duration_total: number; duration_per_retry: number; title: string; file: string; project_name: string; test_name: string; test_file_path: string; test_tags: string; } export declare function parseReportForAnalytics(report: JSONReport): ParsedTestResult[]; export interface TestIdLookupEntry { id: string; file: string; title: string; fullName: string; } export declare function buildTestIdLookup(suites: JSONReportSuite[]): TestIdLookupEntry[]; export interface EstimatedDuration { durationTotal: number; durationPerRetry: number; testsWithHistory: number; testsWithoutHistory: number; } export interface TestHistoryData { duration_total: number; duration_per_retry: number; } export declare function calculateEstimatedDuration(historyByTestId: Record, testIds: string[]): EstimatedDuration; //# sourceMappingURL=parser.d.ts.map