UNPKG

degachejs

Version:

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

24 lines (23 loc) 813 B
/** * Formats a Tunisian phone number * @param phoneNumber - The phone number to format * @returns formatted phone number with country code and proper spacing */ export declare const formatPhoneNumber: (phoneNumber: string) => string; /** * Formats a monetary amount in Tunisian Dinar * @param amount - The amount to format * @param options - Formatting options * @returns formatted amount with currency symbol */ export declare const formatCurrency: (amount: number, options?: { symbol?: boolean; code?: boolean; }) => string; /** * Formats a date according to Tunisian locale * @param date - The date to format * @param options - Intl.DateTimeFormat options * @returns formatted date string */ export declare const formatDate: (date: Date, options?: Intl.DateTimeFormatOptions) => string;