UNPKG

extenso

Version:

Uma biblioteca avançada para escrever números por extenso (em português).

10 lines (9 loc) 407 B
import type { CurrencyCode } from '../types'; /** * Detects currency code or symbol in the input string * @param input - The input string to check for currency * @returns The detected currency code or undefined if none found * @throws {Error} If markers for more than one currency are present */ declare const detectCurrency: (input: string) => CurrencyCode | undefined; export default detectCurrency;