UNPKG

degachejs

Version:

A Tunisian utility library for working with CIN, phone numbers, addresses, and more

31 lines (30 loc) 1.11 kB
/** * Validates a Tunisian CIN (Carte d'Identité Nationale) * @param cin - The CIN number to validate * @returns boolean indicating if the CIN is valid */ export declare const validateCIN: (cin: string) => boolean; /** * Validates a Tunisian phone number * @param phoneNumber - The phone number to validate * @returns boolean indicating if the phone number is valid */ export declare const validatePhoneNumber: (phoneNumber: string) => boolean; /** * Validates a Tunisian postal code * @param postalCode - The postal code to validate * @returns boolean indicating if the postal code is valid */ export declare const validatePostalCode: (postalCode: string) => boolean; /** * Validates a Tunisian company tax ID (Matricule Fiscal) * @param taxId - The tax ID to validate * @returns boolean indicating if the tax ID is valid */ export declare const validateTaxID: (taxId: string) => boolean; /** * Validates a Tunisian bank account RIB * @param rib - The RIB number to validate * @returns boolean indicating if the RIB is valid */ export declare const validateRIB: (rib: string) => boolean;