• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import type { DataError } from "./DataError"
3import type { LocaleFallbacker } from "./LocaleFallbacker"
4import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
5
6
7/** An ICU4X data provider, capable of loading ICU4X data keys from some source.
8*
9*Currently the only source supported is loading from "blob" formatted data from a bytes buffer or the file system.
10*
11*If you wish to use ICU4X's builtin "compiled data", use the version of the constructors that do not have `_with_provider`
12*in their names.
13*
14*See the [Rust documentation for `icu_provider`](https://docs.rs/icu_provider/latest/icu_provider/index.html) for more information.
15*/
16
17
18export class DataProvider {
19
20    get ffiValue(): pointer;
21
22    forkByKey(other: DataProvider): void;
23
24    forkByLocale(other: DataProvider): void;
25
26    enableLocaleFallbackWith(fallbacker: LocaleFallbacker): void;
27}