@phensley/cldr-core
Version:
Core library for @phensley/cldr
15 lines (14 loc) • 784 B
TypeScript
import { NumbersSchema, UnitsSchema, UnitInfo, UnitType } from '@phensley/cldr-schema';
import { Internals, NumberRenderer, UnitInternals } from '../internals';
import { Quantity, UnitFormatOptions } from '../../common';
import { NumberParams } from '../../common/private';
import { Bundle } from '../../resource';
export declare class UnitsInternalImpl implements UnitInternals {
readonly internals: Internals;
readonly numbersSchema: NumbersSchema;
readonly unitsSchema: UnitsSchema;
constructor(internals: Internals);
getDisplayName(bundle: Bundle, name: UnitType, length: string): string;
format<T>(bundle: Bundle, renderer: NumberRenderer<T>, q: Quantity, options: UnitFormatOptions, params: NumberParams): T;
getUnitInfo(length: string): UnitInfo;
}