UNPKG

mozambique-utils

Version:

Easy to use parsers and validators for mozambican (🇲🇿) data-type formatted strings.

68 lines (67 loc) 1.85 kB
/** * Small portion of patterns used by the original number validation patterns. */ export declare const NDC_PREFIX: { [key: string]: string; }; export declare const NDC_MOBILE_SUFFIX: { [key: string]: string; }; export declare const NDC_LANDLINE: { [key: string]: string; }; /** * Matches any mozambican mobile phone number from any carrier/operator. * E.g: 841122434 or +258841122434 or 258841122434 or even 00258841122434 * * @constant * @type {RegExp} */ export declare const MobilePattern: RegExp; /** * Matches any mozambican landline phone number from the incumbent fixed operator (Tmcel) * E.g: 21351100 or +25821351100 or 25821351100 or 0025821351100 * * @constant * @type {RegExp} */ export declare const LandlinePattern: RegExp; /** * Matches mozambican landline NDC of the incumbent fixed operator phone number (Tmcel) * E.g: 21 or 293 or 24 or 252, etc.. * * @see {@link https://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000910003PDFE.pdf} (page 5) for a full list of available NDC * @constant * @type {RegExp} */ export declare const LandlineNDCPattern: RegExp; /** * Matches Vodacom's mobile National Destination Code. * E.g: 84 or 85 * * @constant * @type {RegExp} */ export declare const VodacomNDCPattern: RegExp; /** * Matches Tmcel mobile National Destination Code. * E.g: 82 or 83 * * @constant * @type {RegExp} */ export declare const TmcelNDCPattern: RegExp; /** * Matches Movitel mobile National Destination Code. * E.g: 86 or 87 * * @constant * @type {RegExp} */ export declare const MovitelNDCPattern: RegExp; /** * Matches mozambican Número Único de Identificação Tributária (NUIT) * - NUIT has 9 digits. */ export declare const NUITPattern: RegExp; export declare const IBANPattern: RegExp;