import type { AdherenceReport, QualityReport } from "./types"; /** * Baseline tokens-per-task for efficiency scoring. * A plan consuming this many tokens per task gets an efficiency score of 0.5. * Plans below baseline score above 0.5; plans above baseline score below 0.5. * Exported for future configurability and test reference. */ export declare const BASELINE_TOKENS_PER_TASK = 50000; /** * Calculate a composite quality score for a completed plan. * * Inputs: * - adherence: coverage and precision from the adherence report * - totalTasks / completedTasks: from getPlanProgress() * - totalTokens: sum of input + output + reasoning tokens across all sessions * * Component weights: * - adherenceCoverage (30%): fraction of planned files actually changed * - adherencePrecision (25%): fraction of actual changes that were planned * - taskCompletion (30%): fraction of tasks marked [x] * - efficiency (15%): inverse of normalized tokens-per-task (sigmoid-like) * * Pure function — no I/O. */ export declare function calculateQualityScore(params: { adherence: AdherenceReport; totalTasks: number; completedTasks: number; totalTokens: number; }): QualityReport;