/**
 * Shared types for test run insights calculation.
 *
 * These types are used by both the tool definitions (in tool-library)
 * and the insights calculation utilities (in server-agents).
 */
/**
 * Normalized status for test runs.
 */
export type NormalizedStatus = 'passed' | 'failed' | 'other';
/**
 * Breakdown statistics for a category (browser, version, etc.)
 */
export interface CategoryBreakdown {
    passed: number;
    total: number;
}
/**
 * Version breakdown with timing info.
 */
export interface VersionBreakdown extends CategoryBreakdown {
    firstSeen?: number;
    lastSeen?: number;
}
/**
 * Flakiness detection result.
 */
export interface FlakinessResult {
    isFlaky: boolean;
    flakinessNote?: string;
    alternations: number;
}
/**
 * Duration statistics across runs.
 */
export interface DurationStats {
    avgDurationMs?: number;
    minDurationMs?: number;
    maxDurationMs?: number;
}
/**
 * Consecutive run counts.
 */
export interface ConsecutiveRunCounts {
    consecutiveFailures: number;
    consecutivePasses: number;
    consecutiveFailuresSameVersion: number;
    consecutivePassesSameVersion: number;
}
/**
 * Failure reason breakdown entry.
 */
export interface FailureReasonEntry {
    reason: string;
    count: number;
    percentage: number;
}
/**
 * Browser breakdown entry.
 */
export interface BrowserBreakdownEntry {
    browser: string;
    passRate: number;
    runCount: number;
}
/**
 * Version breakdown entry.
 */
export interface VersionBreakdownEntry {
    variantId: string;
    passRate: number;
    runCount: number;
    firstSeen?: string;
    lastSeen?: string;
}
//# sourceMappingURL=types.d.ts.map