import type { Trial, TrialStats } from "../config/types.js"; export type { TrialStats }; /** * Computes Wilson score interval for a proportion. * Superior to normal approximation for small N and proportions near 0 or 1. * * @param passes - Number of successes * @param total - Total number of trials * @param z - Z-score for the desired confidence level (default 1.96 for 95% CI) */ export declare function wilsonInterval(passes: number, total: number, z?: number): { readonly low: number; readonly high: number; }; /** Computes aggregate statistics for all trials of a single case. Filters the full trial array by `caseId`, then computes pass rate, mean score, standard deviation, Wilson confidence intervals, and flakiness. */ export declare function computeTrialStats(trials: readonly Trial[], caseId: string): TrialStats; /** * Computes trial stats per case. Returns undefined for single-trial runs. */ export declare function computeAllTrialStats(trials: readonly Trial[], trialCount: number | undefined): Record | undefined; //# sourceMappingURL=statistics.d.ts.map