extenso
Version:
Uma biblioteca avançada para escrever números por extenso (em português).
16 lines (15 loc) • 726 B
TypeScript
import type { CurrencyCode } from '../types';
export declare const currencySymbols: Readonly<Record<string, CurrencyCode>>;
/**
* Finds all supported currency markers without matching codes inside words.
* Longer symbols are matched first so that MOP$ is never interpreted as USD.
* @param input - Text that may contain currency codes or symbols
* @returns Every detected currency in source order
*/
export declare const findCurrencies: (input: string) => CurrencyCode[];
/**
* Removes every supported currency marker from an input.
* @param input - Text from which markers should be removed
* @returns Text without supported currency markers
*/
export declare const removeCurrencyMarkers: (input: string) => string;