UNPKG

to-words

Version:

Convert numbers to words in 132 locales with currency, ordinal, and BigInt support (TypeScript, ESM/CJS/UMD).

12 lines (11 loc) 657 B
import { type ConverterOptions, type LocaleConfig, type LocaleInterface, type NumberInput, type OrdinalOptions, type ToWordsOptions } from '../types.js'; import { ToWordsCore } from '../ToWordsCore.js'; export default class Locale implements LocaleInterface { config: LocaleConfig; } export declare class ToWords extends ToWordsCore { constructor(options?: ToWordsOptions); } export declare function toWords(number: NumberInput, options?: ConverterOptions): string; export declare function toOrdinal(number: NumberInput, options?: OrdinalOptions): string; export declare function toCurrency(number: NumberInput, options?: ConverterOptions): string;