//#region src/is-valid-voter-id/is-valid-voter-id.d.ts /** * Validates if a Brazilian voter id (título de eleitor) is valid. * * A voter id normally has 12 digits: an 8-digit sequential number, a 2-digit federative * union code (01-28) and a 2-digit verification code. São Paulo (01) and Minas Gerais (02) * may instead issue voter ids with a 9-digit sequential number, totalling 13 digits. * * Whitespace and dots are accepted around and between the "0000 0000 00 00" groups, but any * other character, a letter in particular, makes the value invalid. * * @param {string} value - The voter id value to be validated. * @returns {boolean} True if the voter id is valid, false otherwise. * * @example * ```typescript * isValidVoterId("102385010671"); // true (12 digits) * isValidVoterId("1234567880191"); // true (13 digits, São Paulo) * isValidVoterId("1023 8501 06 71"); // true (whitespace mask) * isValidVoterId("123456780124"); // false (invalid checksum) * isValidVoterId("ab102385010671"); // false (invalid format) * ``` * * Resolução TSE nº 23.659/2021, art. 36, parágrafo único, confirms the federative union table and * the two-step módulo 11 structure ("até 12 algarismos"). The weights used in each step and the * 13-digit São Paulo/Minas Gerais ids are brutils parity, not published by the TSE — siga0984 uses * a different 9-digit rule for the sequential number. * * The TSE resolution page sits behind a bot filter and answers HTTP 403 to every non-browser * client, so it has to be opened in a browser. * * @see Official: https://www.tse.jus.br/legislacao/compilada/res/2021/resolucao-no-23-659-de-26-de-outubro-de-2021 * @see Based on: https://siga0984.wordpress.com/2019/05/01/algoritmos-validacao-de-titulo-de-eleitor/ * @see Based on: https://github.com/brazilian-utils/python/blob/main/brutils/voter_id.py */ export declare const isValidVoterId: (value: string) => boolean; //#endregion