polish-validators
Version:
A set of validator functions that check common polish numbers.
17 lines (16 loc) • 797 B
TypeScript
/**
* Validates an IMEI (International Mobile Equipment Identity) number, using the Luhn algorithm.
* Checks that the IMEI is 15 digits. Any dashes, slashes, or whitespace are ignored.
*
* @param {string} imei - The 15-digit IMEI number as a string.
* @returns {boolean} `true` if the IMEI is valid; `false` otherwise.
*/
export declare function isImeiValid(imei: string): boolean;
/**
* Validates an IMEI (International Mobile Equipment Identity) number, using the Luhn algorithm.
* Checks that the IMEI is 15 digits. Any dashes, slashes, or whitespace are ignored.
*
* @param {string} imei - The 15-digit IMEI number as a string.
* @returns {boolean} `true` if the IMEI is invalid; `false` otherwise.
*/
export declare const isImeiInvalid: (imei: string) => boolean;