summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/lib/ICU4XLocaleExpander.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu_capi/js/package/lib/ICU4XLocaleExpander.d.ts')
-rw-r--r--intl/icu_capi/js/package/lib/ICU4XLocaleExpander.d.ts48
1 files changed, 48 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/lib/ICU4XLocaleExpander.d.ts b/intl/icu_capi/js/package/lib/ICU4XLocaleExpander.d.ts
new file mode 100644
index 0000000000..d3f8b8ff3a
--- /dev/null
+++ b/intl/icu_capi/js/package/lib/ICU4XLocaleExpander.d.ts
@@ -0,0 +1,48 @@
+import { FFIError } from "./diplomat-runtime"
+import { ICU4XDataProvider } from "./ICU4XDataProvider";
+import { ICU4XError } from "./ICU4XError";
+import { ICU4XLocale } from "./ICU4XLocale";
+import { ICU4XTransformResult } from "./ICU4XTransformResult";
+
+/**
+
+ * A locale expander.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html Rust documentation for `LocaleExpander`} for more information.
+ */
+export class ICU4XLocaleExpander {
+
+ /**
+
+ * Create a new {@link ICU4XLocaleExpander `ICU4XLocaleExpander`}.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.new Rust documentation for `new`} for more information.
+ * @throws {@link FFIError}<{@link ICU4XError}>
+ */
+ static create(provider: ICU4XDataProvider): ICU4XLocaleExpander | never;
+
+ /**
+
+ * Create a new {@link ICU4XLocaleExpander `ICU4XLocaleExpander`} with extended data.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.new_extended Rust documentation for `new_extended`} for more information.
+ * @throws {@link FFIError}<{@link ICU4XError}>
+ */
+ static create_extended(provider: ICU4XDataProvider): ICU4XLocaleExpander | never;
+
+ /**
+
+ * FFI version of `LocaleExpander::maximize()`.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.maximize Rust documentation for `maximize`} for more information.
+ */
+ maximize(locale: ICU4XLocale): ICU4XTransformResult;
+
+ /**
+
+ * FFI version of `LocaleExpander::minimize()`.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.minimize Rust documentation for `minimize`} for more information.
+ */
+ minimize(locale: ICU4XLocale): ICU4XTransformResult;
+}