degachejs
Version:
A Tunisian utility library for working with CIN, phone numbers, addresses, and more
14 lines (13 loc) • 457 B
TypeScript
import { Bank } from "../types";
/**
* Validates a Tunisian RIB (Relevé d'Identité Bancaire)
* @param rib - The 20-digit RIB number
* @returns boolean indicating if the RIB is valid
*/
export declare const validateRIB: (rib: string) => boolean;
/**
* Gets bank information from a RIB number
* @param rib - The 20-digit RIB number
* @returns bank information or null if invalid
*/
export declare const getBankFromRIB: (rib: string) => Bank | null;