1// generated by diplomat-tool 2import type { DataError } from "./DataError" 3import type { DataProvider } from "./DataProvider" 4import type { MeasureUnit } from "./MeasureUnit" 5import type { MeasureUnitParser } from "./MeasureUnitParser" 6import type { UnitsConverter } from "./UnitsConverter" 7import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 8 9 10/** An ICU4X Units Converter Factory object, capable of creating converters a [`UnitsConverter`] 11*for converting between two [`MeasureUnit`]s. 12* 13*Also, it can parse the CLDR unit identifier (e.g. `meter-per-square-second`) and get the [`MeasureUnit`]. 14* 15*See the [Rust documentation for `ConverterFactory`](https://docs.rs/icu/latest/icu/experimental/units/converter_factory/struct.ConverterFactory.html) for more information. 16*/ 17 18 19export class UnitsConverterFactory { 20 21 get ffiValue(): pointer; 22 23 static createWithProvider(provider: DataProvider): UnitsConverterFactory; 24 25 converter(from: MeasureUnit, to: MeasureUnit): UnitsConverter | null; 26 27 parser(): MeasureUnitParser; 28 29 constructor(); 30}