/** * Converts a numeric value to Danish words. * * @param {number | string | bigint} value - The numeric value to convert * @returns {string} The number in Danish words * @throws {TypeError} If value is not a valid numeric type * @throws {Error} If value is not a valid number format * * @example * toCardinal(21) // 'enogtyve' * toCardinal(1000) // 'ettusind' * toCardinal(1000000) // 'en millioner' */ export function toCardinal(value: number | string | bigint): string; /** * Converts a numeric value to Danish 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) // 'første' * toOrdinal(2) // 'anden' * toOrdinal(21) // 'enogtyvede' */ export function toOrdinal(value: number | string | bigint): string; /** * Converts a numeric value to Danish currency words (Danish Krone). * * Uses krone/kroner and øre (100 øre = 1 krone). * * @param {number | string | bigint} value - The currency amount to convert * @returns {string} The amount in Danish currency words * @throws {TypeError} If value is not a valid numeric type * @throws {Error} If value is not a valid number format * * @example * toCurrency(1) // 'en krone' * toCurrency(42) // 'toogfyrre kroner' * toCurrency(1.50) // 'en krone og halvtreds øre' */ export function toCurrency(value: number | string | bigint): string;