1// generated by diplomat-tool 2import type { MeasureUnit } from "./MeasureUnit" 3import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 4 5 6/** An ICU4X Measurement Unit parser object which is capable of parsing the CLDR unit identifier 7*(e.g. `meter-per-square-second`) and get the [`MeasureUnit`]. 8* 9*See the [Rust documentation for `MeasureUnitParser`](https://docs.rs/icu/latest/icu/experimental/measure/parser/struct.MeasureUnitParser.html) for more information. 10*/ 11 12 13export class MeasureUnitParser { 14 15 get ffiValue(): pointer; 16 17 parse(unitId: string): MeasureUnit | null; 18}