/** * Converts a numeric value to German words. * * This is the main public API. It accepts any valid numeric input * (number, string, or bigint) and handles parsing internally. * * @param {number | string | bigint} value - The numeric value to convert * @returns {string} The number in German words * @throws {TypeError} If value is not a valid numeric type * @throws {Error} If value is not a valid number format * * @example * toCardinal(21) // 'einundzwanzig' * toCardinal(1000) // 'eintausend' * toCardinal(1000000) // 'eine Million' */ export function toCardinal(value: number | string | bigint): string; /** * Converts a numeric value to German ordinal words. * * German ordinals add -te for 1-19 and -ste for 20+. * Irregular forms: erste (1st), dritte (3rd), siebte (7th), achte (8th). * * @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) // 'erste' * toOrdinal(2) // 'zweite' * toOrdinal(3) // 'dritte' * toOrdinal(21) // 'einundzwanzigste' * toOrdinal(100) // 'einhundertste' * toOrdinal(1000) // 'eintausendste' */ export function toOrdinal(value: number | string | bigint): string; /** * Converts a numeric value to German currency words (Euro). * * @param {number | string | bigint} value - The currency amount to convert * @param {Object} [options] - Optional configuration * @param {boolean} [options.and=true] - Use "und" between euros and cents * @returns {string} The amount in German 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) // 'zweiundvierzig Euro und fünfzig Cent' * toCurrency(1) // 'ein Euro' * toCurrency(0.99) // 'neunundneunzig Cent' * toCurrency(0.01) // 'ein Cent' * toCurrency(42.50, { and: false }) // 'zweiundvierzig Euro fünfzig Cent' */ export function toCurrency(value: number | string | bigint, options?: { and?: boolean | undefined; }): string;