| 1 | import { FFIError } from "./diplomat-runtime" |
| 2 | import { ICU4XDataProvider } from "./ICU4XDataProvider"; |
| 3 | import { ICU4XError } from "./ICU4XError"; |
| 4 | import { ICU4XList } from "./ICU4XList"; |
| 5 | import { ICU4XListLength } from "./ICU4XListLength"; |
| 6 | import { ICU4XLocale } from "./ICU4XLocale"; |
| 7 | |
| 8 | /** |
| 9 | |
| 10 | * See the {@link https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html Rust documentation for `ListFormatter`} for more information. |
| 11 | */ |
| 12 | export class ICU4XListFormatter { |
| 13 | |
| 14 | /** |
| 15 | |
| 16 | * Construct a new ICU4XListFormatter instance for And patterns |
| 17 | |
| 18 | * See the {@link https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html#method.try_new_and_with_length Rust documentation for `try_new_and_with_length`} for more information. |
| 19 | * @throws {@link FFIError}<{@link ICU4XError}> |
| 20 | */ |
| 21 | static create_and_with_length(provider: ICU4XDataProvider, locale: ICU4XLocale, length: ICU4XListLength): ICU4XListFormatter | never; |
| 22 | |
| 23 | /** |
| 24 | |
| 25 | * Construct a new ICU4XListFormatter instance for And patterns |
| 26 | |
| 27 | * See the {@link https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html#method.try_new_or_with_length Rust documentation for `try_new_or_with_length`} for more information. |
| 28 | * @throws {@link FFIError}<{@link ICU4XError}> |
| 29 | */ |
| 30 | static create_or_with_length(provider: ICU4XDataProvider, locale: ICU4XLocale, length: ICU4XListLength): ICU4XListFormatter | never; |
| 31 | |
| 32 | /** |
| 33 | |
| 34 | * Construct a new ICU4XListFormatter instance for And patterns |
| 35 | |
| 36 | * See the {@link https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html#method.try_new_unit_with_length Rust documentation for `try_new_unit_with_length`} for more information. |
| 37 | * @throws {@link FFIError}<{@link ICU4XError}> |
| 38 | */ |
| 39 | static create_unit_with_length(provider: ICU4XDataProvider, locale: ICU4XLocale, length: ICU4XListLength): ICU4XListFormatter | never; |
| 40 | |
| 41 | /** |
| 42 | |
| 43 | * See the {@link https://docs.rs/icu/latest/icu/list/struct.ListFormatter.html#method.format Rust documentation for `format`} for more information. |
| 44 | * @throws {@link FFIError}<{@link ICU4XError}> |
| 45 | */ |
| 46 | format(list: ICU4XList): string | never; |
| 47 | } |