//#region src/is-valid-license-plate/is-valid-license-plate.d.ts /** * Validates if a Brazilian license plate (placa de carro ou moto) is valid. * * Supports the old Brazilian format (ABC-1234) and the Mercosul format (ABC1D23), the single * sequence Resolução CONTRAN nº 969/2022 defines for every vehicle, motorcycles included. * Accepts the usual mask characters (hyphens, spaces) and is case-insensitive, mirroring * `getFormatLicensePlate`/`parseLicensePlate` (single source of truth for the supported * formats). * * @param {string} value - The license plate value to be validated. * @returns {boolean} True if the license plate is valid, false otherwise. * * @example * ```typescript * isValidLicensePlate("abc1234"); // true (Brazilian format) * isValidLicensePlate("ABC-1234"); // true (Brazilian format with hyphen) * isValidLicensePlate("ABC 1234"); // true (whitespace mask) * isValidLicensePlate("abc1d23"); // true (Mercosul format) * isValidLicensePlate("ABC12D3"); // false (not a Mercosul sequence) * isValidLicensePlate("ABC1234EXTRA"); // false (too many characters) * isValidLicensePlate("invalid"); // false * ``` * * The resolution's own text does not spell the sequence out: art. 2º § 2º delegates the * technical specification to Anexo I, whose item 1.2 reads "O padrão de estampagem é composto de * 7 (sete) caracteres alfanuméricos, em alto relevo, na sequência LLLNLNN" and whose item 1.2.1 * reads `L` as a letter and `N` as a numeral. Art. 2º § 1º puts a single rear plate of that same * standard on motorcycles and similar vehicles, and art. 2º § 3º describes the old `AAA-1111` * PNU it coexists with. The annexes are published in a PDF of their own, cited below alongside * the resolution's text. * * @see Official: https://www.gov.br/transportes/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao9692022.pdf * @see Official: https://www.gov.br/transportes/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao9692022anexos.pdf */ export declare const isValidLicensePlate: (value: string) => boolean; //#endregion