import type { ActualRecord, EstimationAccuracyReport, CalibrationFactors, SpecScope, SpecType } from '../types/index.js';
/**
 * Compute deviation percentage: positive = over estimate, negative = under estimate.
 * Returns 0 when estimatedHours is 0 to avoid division by zero.
 */
export declare function computeDeviationPct(estimatedHours: number, actualHours: number): number;
export declare function generateAccuracyReport(projectId: string, records: ActualRecord[]): EstimationAccuracyReport;
/**
 * Compute calibration factors from historical actuals.
 * Only creates a multiplier when sample size >= minSamples.
 * A positive avg deviation means we historically underestimate → multiplier > 1.
 */
export declare function computeCalibrationFactors(projectId: string, records: ActualRecord[], minSamples: number): CalibrationFactors;
/**
 * Apply stored calibration factors to a base estimation hours value.
 * Returns the adjusted hours (or the original if no factor found).
 */
export declare function applyCalibration(baseHours: number, scope: SpecScope, type: SpecType, factors: CalibrationFactors | null): number;
//# sourceMappingURL=estimation-calibrator.d.ts.map