import { AbstractStateRule } from '../abstract-state-rule.js'; /** * Validates Bahia (BA) IE numbers. * * Bahia uses two different check-digit algorithms depending on the second digit (d[1]): * - If d[1] ∈ {0,1,2,3,4,5,8} → Mod-10 digit-sum method (similar to credit card Luhn) * - Otherwise (d[1] ∈ {6,7,9}) → Mod-11 (result ≥ 10 → DV = 0) * * Both 8-digit and 9-digit formats are accepted. * DV2 (second-to-last) is calculated first; DV1 (last) is then calculated over body + DV2. * * Source: Sintegra / NFe fiscal note specification. */ export declare class BaRule extends AbstractStateRule { execute(ie: string): boolean; private weightsDesc; private dvMod11Ge10Eq0; private dvMod10DigitSum; }