// generated by diplomat-tool
import type { DataError } from "./DataError"
import type { DataProvider } from "./DataProvider"
import type { Locale } from "./Locale"
import type { TransformResult } from "./TransformResult"
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";



/**
 * A locale expander.
 *
 * See the [Rust documentation for `LocaleExpander`](https://docs.rs/icu/2.2.0/icu/locale/struct.LocaleExpander.html) for more information.
 */
export class LocaleExpander {
    /** @internal */
    get ffiValue(): pointer;


    /**
     * Create a new {@link LocaleExpander} using a `new_common` data source.
     *
     * See the [Rust documentation for `new_common`](https://docs.rs/icu/2.2.0/icu/locale/struct.LocaleExpander.html#method.new_common) for more information.
     */
    static createCommonWithProvider(provider: DataProvider): LocaleExpander;

    /**
     * Create a new {@link LocaleExpander} with extended data using compiled data.
     *
     * See the [Rust documentation for `new_extended`](https://docs.rs/icu/2.2.0/icu/locale/struct.LocaleExpander.html#method.new_extended) for more information.
     */
    static createExtended(): LocaleExpander;

    /**
     * Create a new {@link LocaleExpander} with extended data using a particular data source.
     *
     * See the [Rust documentation for `new_extended`](https://docs.rs/icu/2.2.0/icu/locale/struct.LocaleExpander.html#method.new_extended) for more information.
     */
    static createExtendedWithProvider(provider: DataProvider): LocaleExpander;

    /**
     * See the [Rust documentation for `maximize`](https://docs.rs/icu/2.2.0/icu/locale/struct.LocaleExpander.html#method.maximize) for more information.
     */
    maximize(locale: Locale): TransformResult;

    /**
     * See the [Rust documentation for `minimize`](https://docs.rs/icu/2.2.0/icu/locale/struct.LocaleExpander.html#method.minimize) for more information.
     */
    minimize(locale: Locale): TransformResult;

    /**
     * See the [Rust documentation for `minimize_favor_script`](https://docs.rs/icu/2.2.0/icu/locale/struct.LocaleExpander.html#method.minimize_favor_script) for more information.
     */
    minimizeFavorScript(locale: Locale): TransformResult;

    /**
     * Create a new {@link LocaleExpander} using compiled data.
     *
     * See the [Rust documentation for `new_common`](https://docs.rs/icu/2.2.0/icu/locale/struct.LocaleExpander.html#method.new_common) for more information.
     */
    constructor();
}