import type { AqlInput, AqlResult } from './types.js'; /** * The lot size ranges the sampling tables are indexed by, smallest first. A lot belongs * to the range where `from <= lotSize <= upTo`, and the last range is open-ended. * * Exported because a caller cannot recover the ranges by probing `aql()` — that returns a * plan, not the bounds that produced it — and restating them on its side would be a second * source for the same figures: the day a boundary moves, the caller would keep listing the * old one. Anything that presents results per lot size range, such as a lookup table or a * range selector, should read them here. * * The tabulated series starts at 2. A smaller lot is not rejected: it falls into the first * range and gets that plan, so `from` on the first entry states where the series begins, * not a minimum input. */ export declare const AQL_LOT_SIZE_RANGES: ReadonlyArray<{ readonly from: number; readonly upTo: number; }>; /** * Calculate AQL (Acceptable Quality Level) sampling plan * * @reference ISO 2859-1:1999, Table 1 (sample size code letters) and Table 2-A * (single sampling plans for normal inspection). Equivalent to ANSI/ASQ Z1.4. * @remarks Simplified relative to the standard: the sample size is always the code * letter's own size — Table 2-A arrow cells (which redirect to a plan with a * different sample size) reuse the redirected plan's Ac/Re with this letter's size. * @remarks The embedded table covers AQL columns 0.065–25 (ISO 2859-1 defines * 0.010–1000). A request outside (or between) the embedded columns is snapped to the * nearest column at or below it (or up to 0.065 from below) and disclosed via * `aqlUsed` / `aqlAdjusted` — the returned plan is then for a different quality level * than requested. * @remarks Per ISO 2859-1, AQL values above 10 (the 15 and 25 columns) apply to * inspection for **nonconformities per 100 items** only, not percent nonconforming. * The 10/15/25 columns were transcribed from ISO 2859-1:1999(E) Table 2-A and * cross-verified against MIL-STD-105E Table II-A. * * @param input - AQL input parameters * @returns AQL sampling plan result */ export declare function aql(input: AqlInput): AqlResult; //# sourceMappingURL=aql.d.ts.map