LocaleFallbacker.d.ts (1708B)
1 // generated by diplomat-tool 2 import type { DataError } from "./DataError" 3 import type { DataProvider } from "./DataProvider" 4 import type { LocaleFallbackConfig } from "./LocaleFallbackConfig" 5 import type { LocaleFallbackConfig_obj } from "./LocaleFallbackConfig" 6 import type { LocaleFallbackerWithConfig } from "./LocaleFallbackerWithConfig" 7 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 8 9 10 /** 11 * An object that runs the ICU4X locale fallback algorithm. 12 * 13 * See the [Rust documentation for `LocaleFallbacker`](https://docs.rs/icu/latest/icu/locale/fallback/struct.LocaleFallbacker.html) for more information. 14 */ 15 16 17 export class LocaleFallbacker { 18 get ffiValue(): pointer; 19 20 21 /** 22 * Creates a new `LocaleFallbacker` from a data provider. 23 * 24 * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/locale/fallback/struct.LocaleFallbacker.html#method.new) for more information. 25 */ 26 static createWithProvider(provider: DataProvider): LocaleFallbacker; 27 28 /** 29 * Creates a new `LocaleFallbacker` without data for limited functionality. 30 * 31 * See the [Rust documentation for `new_without_data`](https://docs.rs/icu/latest/icu/locale/fallback/struct.LocaleFallbacker.html#method.new_without_data) for more information. 32 */ 33 static withoutData(): LocaleFallbacker; 34 35 /** 36 * Associates this `LocaleFallbacker` with configuration options. 37 * 38 * See the [Rust documentation for `for_config`](https://docs.rs/icu/latest/icu/locale/fallback/struct.LocaleFallbacker.html#method.for_config) for more information. 39 */ 40 forConfig(config: LocaleFallbackConfig_obj): LocaleFallbackerWithConfig; 41 42 constructor(); 43 }