/** * Copyright (c) 2025 Mihajlo Stojanovski * All rights reserved. */ import { HistoryRecord, PatternOutput } from "../types"; import type { TestSummary } from "../report/interfaces"; /** * Pattern Analyzer * Enterprise principle: pure function, deterministic, capped. */ export declare class PatternAnalyzer { /** * Analyze historical test run records to detect patterns * Identifies flaky tests, recurring failures, performance regressions, and OS-specific issues * * @param records - Array of historical test run records (typically last 7 days) * @param currentTests - Optional current test results for enhanced context * @returns Pattern analysis output with detected issues (capped at 20 per category) */ static analyze(records: HistoryRecord[], currentTests?: TestSummary[]): Promise; private static emptyOutput; private static aggregateTestStats; private static detectFlakyTests; private static hasAlternatingStatuses; private static detectRecurringFailures; private static detectRegressions; private static detectOSDiffs; private static getFailRate; private static hasSignificantOsDiff; private static getOsStatusLabel; } //# sourceMappingURL=analyze.d.ts.map