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 CPF (Cadastro de Pessoas FĂ­sicas) numbers. * * Applies Mod11 check-digit algorithm with two verification digits. */ export declare class CPFValidation extends AbstractValidatableDocument { protected documentName(): string; /** * Generates a valid CPF. * * @param formatted When true, returns the masked form (000.000.000-00). * @returns A number that always passes {@link validate}. */ static generate(formatted?: boolean): string; /** * Mod-11 check digit over `digits` with descending weights starting at * `startWeight`. Remainder < 2 yields 0 (the CPF convention shared with doValidate). */ private static checkDigit; protected doValidate(): ReasonCode | null; /** Fiscal region (group of states) inferred from the 9th digit. */ protected extractMeta(normalized: string): DocumentMeta; /** Canonical CPF mask: 000.000.000-00. */ protected mask(stripped: string): string; }