import { U as UfCode, O as TituloEleitorValidationResult, F as FormatResult } from './validation-result-D4Wrxl7j.js'; export { D as DocumentFormat, M as TituloEleitor, V as ValidationErrorCode, Q as ValidationResult } from './validation-result-D4Wrxl7j.js'; /** * Título de Eleitor constants — modulo 11 (TSE Res. 20.132/1998 + algorithm cross-checks). * @see https://www.tse.jus.br/legislacao/compilada/res/1998/resolucao-no-20-132-de-19-de-marco-de-1998 — Art. 10 (structure, mod 11) * @see https://pt.wikipedia.org/wiki/T%C3%ADtulo_eleitoral#C%C3%A1lculo_do_d%C3%ADgito_verificador — weights + SP/MG rule * @see http://ghiorzi.org/DVnew.htm#e — algorithm cross-check */ declare const TITULO_ELEITOR_DV1_WEIGHTS_8: readonly [2, 3, 4, 5, 6, 7, 8, 9]; declare const TITULO_ELEITOR_DV1_WEIGHTS_9: readonly [9, 2, 3, 4, 5, 6, 7, 8, 9]; declare const TITULO_ELEITOR_DV2_WEIGHTS: readonly [7, 8, 9]; declare const TITULO_ELEITOR_SEQUENTIAL_LENGTH = 8; declare const TITULO_ELEITOR_SEQUENTIAL_LENGTH_EXTENDED = 9; declare const TITULO_ELEITOR_LENGTH = 12; declare const TITULO_ELEITOR_LENGTH_EXTENDED = 13; declare const TITULO_ELEITOR_NUMERIC_PATTERN_12: RegExp; declare const TITULO_ELEITOR_NUMERIC_PATTERN_13: RegExp; /** TSE UF codes where remainder 0 maps DV to 1 instead of 0. */ declare const TITULO_ELEITOR_SPECIAL_UF_CODES: readonly [1, 2]; /** Golden primary — SC (UF=09), Wikipedia PT walkthrough. */ declare const TITULO_ELEITOR_GOLDEN_PRIMARY = "004356870906"; declare const TITULO_ELEITOR_GOLDEN_SP_SPECIAL = "000000000116"; declare const TITULO_ELEITOR_GOLDEN_SP_EXTENDED = "1234567890175"; declare const TITULO_ELEITOR_GOLDEN_EXTERIOR = "000000012895"; declare const TITULO_ELEITOR_GOLDEN_MASKED_INPUT = "0043 5687 0906"; /** Normative — Resolução TSE 20.132/1998, Art. 10 (8 seq + 2 UF + 2 DV, mod 11). */ declare const TITULO_ELEITOR_OFFICIAL_SOURCE_URL = "https://www.tse.jus.br/legislacao/compilada/res/1998/resolucao-no-20-132-de-19-de-marco-de-1998"; /** Normative — Resolução TSE 23.659/2021 (Cadastro Eleitoral; confirms UF + DV structure). */ declare const TITULO_ELEITOR_NORMATIVE_SECONDARY_URL = "https://www.tse.jus.br/legislacao/compilada/res/2021/resolucao-no-23-659-de-26-de-outubro-de-2021"; /** * Algorithm weights + SP/MG remainder-zero rule — not in TSE resolution text. * Community consensus validated empirically (Wikipedia PT worked example). */ declare const TITULO_ELEITOR_ALGORITHM_WEIGHTS_REF_URL = "https://pt.wikipedia.org/wiki/T%C3%ADtulo_eleitoral#C%C3%A1lculo_do_d%C3%ADgito_verificador"; /** Algorithm cross-check — Ghiorzi DV table. */ declare const TITULO_ELEITOR_ALGORITHM_REF_URL = "http://ghiorzi.org/DVnew.htm#e"; declare const TITULO_ELEITOR_TSE_PORTAL_URL = "https://www.tse.jus.br/"; declare const TITULO_ELEITOR_ETITULO_URL = "https://www.tse.jus.br/eleitor/servicos/aplicativo-e-titulo"; /** TSE electoral UF code → Brazilian UF (28 = exterior / ZZ). */ declare const TITULO_ELEITOR_UF_BY_CODE: Readonly>; declare const TITULO_ELEITOR_EXTERIOR_UF_CODE = 28; declare function isValidTituloEleitor(input: string): boolean; declare function validateTituloEleitor(input: string): TituloEleitorValidationResult; /** * Strip Título de Eleitor — digits only (BR-TITULO-002). * @see https://pt.wikipedia.org/wiki/T%C3%ADtulo_eleitoral#C%C3%A1lculo_do_d%C3%ADgito_verificador */ declare function stripTituloEleitor(input: string): string; declare function formatTituloEleitor(input: string): FormatResult; export { FormatResult, TITULO_ELEITOR_ALGORITHM_REF_URL, TITULO_ELEITOR_ALGORITHM_WEIGHTS_REF_URL, TITULO_ELEITOR_DV1_WEIGHTS_8, TITULO_ELEITOR_DV1_WEIGHTS_9, TITULO_ELEITOR_DV2_WEIGHTS, TITULO_ELEITOR_ETITULO_URL, TITULO_ELEITOR_EXTERIOR_UF_CODE, TITULO_ELEITOR_GOLDEN_EXTERIOR, TITULO_ELEITOR_GOLDEN_MASKED_INPUT, TITULO_ELEITOR_GOLDEN_PRIMARY, TITULO_ELEITOR_GOLDEN_SP_EXTENDED, TITULO_ELEITOR_GOLDEN_SP_SPECIAL, TITULO_ELEITOR_LENGTH, TITULO_ELEITOR_LENGTH_EXTENDED, TITULO_ELEITOR_NORMATIVE_SECONDARY_URL, TITULO_ELEITOR_NUMERIC_PATTERN_12, TITULO_ELEITOR_NUMERIC_PATTERN_13, TITULO_ELEITOR_OFFICIAL_SOURCE_URL, TITULO_ELEITOR_SEQUENTIAL_LENGTH, TITULO_ELEITOR_SEQUENTIAL_LENGTH_EXTENDED, TITULO_ELEITOR_SPECIAL_UF_CODES, TITULO_ELEITOR_TSE_PORTAL_URL, TITULO_ELEITOR_UF_BY_CODE, TituloEleitorValidationResult, UfCode, formatTituloEleitor, isValidTituloEleitor, stripTituloEleitor, validateTituloEleitor };