/**
 * Analytics metrics computation from JSONL event files.
 *
 * Reads events from ~/.takt/analytics/events/*.jsonl and computes
 * five key indicators for review quality assessment.
 */
/** Aggregated metrics output */
export interface ReviewMetrics {
    /** Re-report count per finding_id (same finding raised more than once) */
    reReportCounts: Map<string, number>;
    /** Ratio of findings that required 2+ round-trips before resolution */
    roundTripRatio: number;
    /** Average number of iterations to resolve a finding */
    averageResolutionIterations: number;
    /** Number of REJECT decisions per rule_id */
    rejectCountsByRule: Map<string, number>;
    /** Ratio of rebutted findings that were subsequently resolved */
    rebuttalResolvedRatio: number;
}
/**
 * Compute review metrics from events within a time window.
 *
 * @param eventsDir Absolute path to the analytics events directory
 * @param sinceMs Epoch ms — only events after this time are included
 */
export declare function computeReviewMetrics(eventsDir: string, sinceMs: number): ReviewMetrics;
/**
 * Format review metrics for CLI display.
 */
export declare function formatReviewMetrics(metrics: ReviewMetrics): string;
/**
 * Parse a duration string like "7d", "30d", "14d" into milliseconds.
 */
export declare function parseSinceDuration(since: string): number;
//# sourceMappingURL=metrics.d.ts.map