/** * NIT (Número de Identificación Tributaria) normalizer · Colombia * * Reference: DIAN · Orden Administrativa 4 de 1989 * · https://www.dian.gov.co * Format: 9-digit body + "-" + 1-digit verification digit (DV). * * Canonical form: digits-only body + "-" + verifier (0-9). * The DV is computed using DIAN's modulo-11 algorithm with the fixed * weight sequence [41, 37, 29, 23, 19, 17, 13, 7, 3] applied left-to-right. * * Example: NIT 890903938 → DV 8 → "890903938-8" (Bancolombia S.A.). */ /** * Normalize a Colombian NIT to canonical "XXXXXXXXX-X" form. * Accepts inputs like "890.903.938-8", "8909039388", "890903938-8". * * @throws Error if the input cannot be parsed. */ export declare function normalizeNitCO(input: string): string; /** * Compute the canonical NIT verifier digit using the DIAN modulo-11 * algorithm with weights [41, 37, 29, 23, 19, 17, 13, 7, 3]. * * The weights are applied left-to-right against the NIT body (right-padded * with leading zeros to length 9 when the body has fewer than 9 digits). */ export declare function computeVerifierDigitCO(body: string): string; /** * Validate that a string is a syntactically correct Colombian NIT with a * matching verification digit. */ export declare function isValidNitCO(input: string): boolean; //# sourceMappingURL=nit-co.d.ts.map