import { AbstractValidatableDocument } from '../../contracts/abstract-validatable-document.js'; import { ReasonCode } from '../../contracts/reason-code.js'; import { type DocumentMeta } from '../../contracts/validation-result.js'; /** * Validates Brazilian civil registry certificate matrículas (nationwide 32-digit * model — CNJ Provimento 63/2017, consolidated by Provimento 149/2023). * * Layout (32 digits): CNS serventia(6) · acervo(2) · RCPN(2) · year(4) · * book type(1) · book(5) · sheet(3) · term(7) · D1(1) · D2(1). * * Check digits use Mod-11 with a ×10 step: each DV is (weightedSum × 10) % 11, * where a remainder of 10 maps to 1. Not to be confused with the 20-digit * judicial process number (Mod-97) or the real-estate CNM (Mod-97). */ export declare class CertidaoValidation extends AbstractValidatableDocument { protected documentName(): string; protected doValidate(): ReasonCode | null; /** * Mod-11 ×10 check digit: weighted sum of `digits` with descending weights * from `startWeight` down to 2, then (sum × 10) % 11; a remainder of 10 → 1. */ private static checkDigit; /** Certificate kind derived from the book-type digit (position 15). */ protected extractMeta(normalized: string): DocumentMeta; }