/** * Pure scoring function for file stability prediction. * Combines revert ratio, churn trend, code age, and conflict frequency * into a single stability score (0-100). */ import type { RiskLevel } from "./risk-classifiers.js"; export interface StabilitySignals { revertRatio: number; churnTrendRatio: number; codeAgeDays: number; conflictRatio: number; } export interface StabilityResult { score: number; riskLevel: RiskLevel; penalties: { revert: number; churnTrend: number; codeAge: number; conflict: number; }; } /** * Predict file stability from 4 signals. * Score starts at 100 and is reduced by penalties. * * - Revert ratio penalty: up to 30 points * - Churn trend penalty: up to 25 points * - Code age penalty (too young = unstable): up to 20 points * - Conflict frequency penalty: up to 25 points */ export declare function predictStability(signals: StabilitySignals): StabilityResult;