import type { ZScoreInput, ZScoreResult, AssessmentInput, AssessmentResult } from './types.js'; import type { LmsRow } from './types.js'; /** * Standard normal CDF approximation (Abramowitz & Stegun, formula 26.2.17). * Maximum error: 7.5e-8. */ export declare function normalCdf(z: number): number; /** * Calculate z-score from measurement and LMS parameters. * * Standard formula: Z = ((measurement/M)^L - 1) / (L * S) * When L = 0: Z = ln(measurement/M) / S * * WHO extrapolation for |Z| > 3: * SD3pos = M * (1 + L*S*3)^(1/L) * SD23pos = SD3pos - SD2pos * If Z > 3: Z = 3 + (measurement - SD3pos) / SD23pos * If Z < -3: Z = -3 + (measurement - SD3neg) / SD23neg */ export declare function computeZScore(measurement: number, lms: LmsRow): number; /** * Calculate z-score and percentile for a single indicator. */ export declare function calculateZScore(input: ZScoreInput): Promise; /** * Calculate all applicable indicators for a patient. */ export declare function calculateAll(input: AssessmentInput): Promise; //# sourceMappingURL=calculator.d.ts.map