UNPKG

num-beauty

Version:

An ultra lightweight module for formatting numbers into human-friendly strings

18 lines (17 loc) 712 B
import type { LocaleConfig } from './index.js'; type LocaleLoader = () => Promise<{ locale: Partial<LocaleConfig> & { masks: Record<string, string>; currencies: Record<string, { symbol: string; position: 'before' | 'after'; }>; units: ReadonlyArray<readonly [string, string]>; }; }>; export declare function loadLocale(locale: string): Promise<void>; export declare function isLocaleLoaded(locale: string): boolean; export declare function getAvailableLocales(): string[]; export declare function preloadLocales(locales: string[]): Promise<void>; export declare function registerLocaleLoader(locale: string, loader: LocaleLoader): void; export {};