import { DyE2E_CWVMetric_Type } from '../../contracts/_enums/cwv-metric-type.enum'; /** * MP-05/Wave-3 — CWV report comparison util. * * Két JSON-report-ot összevet (régi vs új) és visszaadja a regressziókat. * Tipikus use-case: nightly CICD vs előző-stable, vagy PR-build vs main. */ export interface DyE2E_CWVComparison_Summary { metric: DyE2E_CWVMetric_Type; oldP75: number; newP75: number; /** Delta = newP75 − oldP75. Pozitív = romlás (LCP/CLS/INP/TTFB/FCP-nél). */ delta: number; /** Százalékos változás. */ deltaPercent: number; /** "improved" | "regressed" | "stable". */ status: 'improved' | 'regressed' | 'stable'; } export interface DyE2E_CWVReport_Shape { route?: string; summary?: Record; raw?: Array<{ metric?: string; value?: number; iter?: number; }>; [extra: string]: unknown; } export declare class DyE2E_CWVComparison_Util { /** Delta-tűrés (% alatti változás "stable"-nek számít). Default 5%. */ static defaultStableTolerancePercent: number; /** * Összevet két CWV-JSON-report-ot. * * @param oldReport — előző (baseline) report * @param newReport — új (current) report * @param tolerance — % alatti változás "stable". Default `defaultStableTolerancePercent`. */ static compareReports(oldReport: DyE2E_CWVReport_Shape, newReport: DyE2E_CWVReport_Shape, tolerance?: number): DyE2E_CWVComparison_Summary[]; /** Csak a regresszióknak a leírása (kiemelve). */ static regressionsOnly(comparisons: DyE2E_CWVComparison_Summary[]): DyE2E_CWVComparison_Summary[]; /** Ember-olvasható összegzés markdown-tablázatra. */ static formatMarkdownTable(comparisons: DyE2E_CWVComparison_Summary[]): string; } //# sourceMappingURL=cwv-comparison.util.d.ts.map