//#region src/format-license-plate/format-license-plate.d.ts /** * Formats a Brazilian license plate (placa de carro ou moto). * * Old format plates ("LLLNNNN") are hyphenated, while Mercosul plates ("LLLNLNN") are * returned without any separator. Partial values are formatted as far as they go, so the * function can be used as an input mask. * * @param {string} value - The license plate to be formatted. * @returns {string} The formatted license plate, or an empty string when the value cannot * start a valid license plate. * * @example * ```typescript * formatLicensePlate("abc1234"); // "ABC-1234" * formatLicensePlate("abc1d23"); // "ABC1D23" * formatLicensePlate("1234567"); // "" * ``` * * The `AAA-1111` shape of the old PNU is art. 2º § 3º of Resolução CONTRAN nº 969/2022; the * separatorless `LLLNLNN` shape of the Mercosul plate is item 1.2 of its Anexo I, published in a * PDF of its own. Both are cited below. * * @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 formatLicensePlate: (value: string) => string; //#endregion