//#region src/is-valid-passport/is-valid-passport.d.ts /** * Checks if a Brazilian passport number is valid. * To be considered valid, the sanitized input must contain exactly two alphabetical * characters followed by exactly six numerical digits. The input is case-insensitive and * any non-alphanumeric characters (spaces, dots, hyphens, etc.) are ignored, mirroring the * sanitization performed by `formatPassport`/`parsePassport`. * This function does not verify if the input is a real passport number, * as there are no checksums for the Brazilian passport. * A number is accepted for symmetry with `formatPassport`/`parsePassport` but is never valid: * the decimal form of a number never starts with the two letters a passport number needs. * * @param {string|number} passport - The string containing the passport number to be checked. * @returns {boolean} True if the passport number is valid (2 letters followed by 6 digits). * * @example * isValidPassport("AB123456") // true * isValidPassport("ab123456") // true (case-insensitive) * isValidPassport("AB-123.456") // true (symbols are ignored) * isValidPassport("12345678") // false * isValidPassport("DC-221345extra") // false * * The Polícia Federal passport FAQ states the layout: "Ele é composto por duas letras - chamadas * de 'série', e por seis dígitos subsequentes. Por exemplo: Passaporte CS265436." * * @see Official: https://www.gov.br/pf/pt-br/assuntos/passaporte * @see Official: https://www.gov.br/pf/pt-br/assuntos/passaporte/ajuda/duvidas_/caderneta/caderneta-numero-onde-fica-e */ export declare const isValidPassport: (passport: string | number) => boolean; //#endregion