/** * This method computes a control digit taking into account the given `digits` and `weights`, take * into account that these two must have the same `length`. * @param digits array like representation of a cpf, i.e. `"123.456.789-09"`, the digits would compute * to `[1, 2, 3, 4, 5, 6, 7, 8, 9]` * @param weights another list of numbers which represent the weight for each digit, basically we * follow an incremental weight, for more info on cpf control digits checkout * [this link](https://www.calculadorafacil.com.br/computacao/validar-cpf). * @returns a control digit for a given sequence of digits and weights. */ export declare const computeControlDigit: (digits: number[], weights: number[]) => number; /** * This method check if `data` is a cpf that complies with it mathematical validation via the * control digits, for more info on this, checkout [this link](https://www.calculadorafacil.com.br/computacao/validar-cpf). * @param data cpf to check mathematically. * @returns */ export declare const matchesControlDigits: (data: string) => boolean; /** * Validates a Brazilian CPF (Cadastro de Pessoas FĂ­sicas) number. * * This function performs a comprehensive validation of a CPF number, including: * - Cleaning the input by removing non-digit characters * - Checking for the correct length * - Verifying that it's not a known invalid CPF (e.g., all digits the same) * - Validating both check digits according to the CPF algorithm * * @param {string} data - The CPF string to validate can include formatting characters * * @returns {boolean} Returns true if the CPF is valid, false otherwise. * * @example * // returns true for a valid CPF * validationCPFIdPerson("123.456.789-09") * * @example * // returns false for an invalid CPF * validationCPFIdPerson("111.111.111-11") * * @see https://www.4devs.com.br/validador_cpf */ export declare const validationCPFIdPerson: (data: string) => boolean; //# sourceMappingURL=cpf.d.ts.map