| // generated by diplomat-tool |
| import type { DataError } from "./DataError" |
| import type { LocaleFallbacker } from "./LocaleFallbacker" |
| import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; |
| |
| |
| /** An ICU4X data provider, capable of loading ICU4X data keys from some source. |
| * |
| *Currently the only source supported is loading from "blob" formatted data from a bytes buffer or the file system. |
| * |
| *If you wish to use ICU4X's builtin "compiled data", use the version of the constructors that do not have `_with_provider` |
| *in their names. |
| * |
| *See the [Rust documentation for `icu_provider`](https://docs.rs/icu_provider/latest/icu_provider/index.html) for more information. |
| */ |
| |
| |
| export class DataProvider { |
| |
| get ffiValue(): pointer; |
| |
| forkByKey(other: DataProvider): void; |
| |
| forkByLocale(other: DataProvider): void; |
| |
| enableLocaleFallbackWith(fallbacker: LocaleFallbacker): void; |
| } |