/** * Urdu (Pakistan) language converter * * CLDR: ur-PK | Urdu as used in Pakistan * * Key features: * - Indian numbering system (ہزار, لاکھ, کروڑ) * - Urdu script (right-to-left) * - 3-2-2 grouping pattern (last 3 digits, then groups of 2) * - Complete word forms for 0-99 */ export declare const cardinalMax: bigint; export declare const ordinalMax: bigint; export declare const currencyMax: bigint; /** * Converts a numeric value to Urdu words. * @param {number | string | bigint} value - The numeric value to convert * @returns {string} The number in Urdu words */ declare function toCardinal(value: number | string | bigint): string; /** * Converts a numeric value to Urdu ordinal words. * @param {number | string | bigint} value - The numeric value to convert (positive integer) * @returns {string} The number as ordinal words * @throws {TypeError} If value is not a valid numeric type * @throws {RangeError} If value is negative, zero, or has a decimal part * @example * toOrdinal(1) // 'پہلا' * toOrdinal(2) // 'دوسرا' * toOrdinal(3) // 'تیسرا' * toOrdinal(10) // 'دسواں' */ declare function toOrdinal(value: number | string | bigint): string; export type CurrencyOptions = { /** * - ISO 4217 code: native PKR, else DisplayNames/home-minor fallback (see currency-fallback.js) */ currency?: string; }; /** * @typedef {object} CurrencyOptions * @property {string} [currency] - ISO 4217 code: native PKR, else DisplayNames/home-minor fallback (see currency-fallback.js) */ /** @type {Required} */ export declare const currencyDefaults: Required; /** * Open set on purpose: no `currency` key, so `resolveOptions` accepts any * ISO 4217 code and the lookup below falls back past the native matrix. * Kept as an (empty) export so re-exporters (`ur.js`), the CLI help and the * docs generators keep a stable binding to read. */ export declare const currencyValues: {}; /** * Converts a numeric value to Urdu currency words (Pakistani Rupee). * @param {number | string | bigint} value - The currency amount to convert * @param {CurrencyOptions} [options] - Optional configuration * @returns {string} The amount in Urdu currency words * @throws {TypeError} If value is not a valid numeric type * @throws {Error} If value is not a valid number format * @example * toCurrency(42.50) // 'بیالیس روپے پچاس پیسے' * toCurrency(1) // 'ایک روپیہ' * toCurrency(0.01) // 'ایک پیسہ' */ declare function toCurrency(value: number | string | bigint, options?: CurrencyOptions): string; export { toCardinal, toOrdinal, toCurrency };