import { Q as ValidationResult, g as Cnh, F as FormatResult } from './validation-result-D4Wrxl7j.js'; export { D as DocumentFormat, V as ValidationErrorCode } from './validation-result-D4Wrxl7j.js'; /** * CNH constants — Registro Nacional modulo 11 (CONTRAN / SENATRAN). * @see https://www.gov.br/transportes/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao5112014.pdf * @see https://www.gov.br/transportes/pt-br/assuntos/transito/conteudo-contran/resolucoes/Resolucao8862021.pdf * @see https://www.gov.br/pt-br/servicos/validar-cnh * @see https://siga0984.wordpress.com/2019/05/01/algoritmos-validacao-de-cnh/ — algorithm cross-check (AdvPL) * @see https://www.geravalida.com.br/validador-cnh — implementation cross-check * @see https://geradorbr.com/validador-de-cnh/ — implementation cross-check */ declare const CNH_DV1_WEIGHTS: readonly [9, 8, 7, 6, 5, 4, 3, 2, 1]; declare const CNH_DV2_WEIGHTS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9]; declare const CNH_LENGTH = 11; declare const CNH_BASE_LENGTH = 9; /** Golden primary — DV walkthrough: base `624729276` → DV `37`. */ declare const CNH_GOLDEN_PRIMARY = "62472927637"; declare const CNH_GOLDEN_SECONDARY = "69044271146"; declare const CNH_GOLDEN_DISCOUNT_CASE = "00000001801"; /** Non-official CPF-style decoration — accepted on input via strip, never emitted by format. */ declare const CNH_GOLDEN_PRIMARY_DECORATED_INPUT = "624.729.276-37"; declare const CNH_OFFICIAL_SOURCE_URL = "https://www.gov.br/transportes/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao5112014.pdf"; /** SENATRAN online validation — requires plain 11-digit registration number. */ declare const CNH_SENATRAN_VALIDAR_URL = "https://www.gov.br/pt-br/servicos/validar-cnh"; declare function isValidCnh(input: string): boolean; declare function validateCnh(input: string): ValidationResult; /** * Strip CNH — digits only (BR-CNH-002). Removes non-official decoration (e.g. CPF-style dots). * @see https://www.gov.br/transportes/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao5112014.pdf * @see https://www.gov.br/pt-br/servicos/validar-cnh */ declare function stripCnh(input: string): string; declare function formatCnh(input: string): FormatResult; export { CNH_BASE_LENGTH, CNH_DV1_WEIGHTS, CNH_DV2_WEIGHTS, CNH_GOLDEN_DISCOUNT_CASE, CNH_GOLDEN_PRIMARY, CNH_GOLDEN_PRIMARY_DECORATED_INPUT, CNH_GOLDEN_SECONDARY, CNH_LENGTH, CNH_OFFICIAL_SOURCE_URL, CNH_SENATRAN_VALIDAR_URL, Cnh, FormatResult, ValidationResult, formatCnh, isValidCnh, stripCnh, validateCnh };