1// generated by diplomat-tool 2import type { DataError } from "./DataError" 3import type { DataProvider } from "./DataProvider" 4import type { ListLength } from "./ListLength" 5import type { Locale } from "./Locale" 6import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 7 8 9/** See the [Rust documentation for `ListFormatter`](https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html) for more information. 10*/ 11 12 13export class ListFormatter { 14 15 get ffiValue(): pointer; 16 17 static createAndWithLength(locale: Locale, length: ListLength): ListFormatter; 18 19 static createAndWithLengthAndProvider(provider: DataProvider, locale: Locale, length: ListLength): ListFormatter; 20 21 static createOrWithLength(locale: Locale, length: ListLength): ListFormatter; 22 23 static createOrWithLengthAndProvider(provider: DataProvider, locale: Locale, length: ListLength): ListFormatter; 24 25 static createUnitWithLength(locale: Locale, length: ListLength): ListFormatter; 26 27 static createUnitWithLengthAndProvider(provider: DataProvider, locale: Locale, length: ListLength): ListFormatter; 28 29 format(list: Array<string>): string; 30}