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



/**
 * A set of "exemplar characters" for a given locale.
 *
 * See the [Rust documentation for `locale`](https://docs.rs/icu/2.1.1/icu/locale/index.html) for more information.
 *
 * See the [Rust documentation for `ExemplarCharacters`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html) for more information.
 *
 * See the [Rust documentation for `ExemplarCharactersBorrowed`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharactersBorrowed.html) for more information.
 */
export class ExemplarCharacters {
    /** @internal */
    get ffiValue(): pointer;
    /** @internal */
    constructor();


    /**
     * Checks whether the string is in the set.
     *
     * See the [Rust documentation for `contains_str`](https://docs.rs/icu/2.1.1/icu/collections/codepointinvliststringlist/struct.CodePointInversionListAndStringList.html#method.contains_str) for more information.
     */
    containsStr(s: string): boolean;

    /**
     * Checks whether the code point is in the set.
     *
     * See the [Rust documentation for `contains`](https://docs.rs/icu/2.1.1/icu/collections/codepointinvliststringlist/struct.CodePointInversionListAndStringList.html#method.contains) for more information.
     */
    contains(cp: codepoint): boolean;

    /**
     * Create an {@link ExemplarCharacters} for the "main" set of exemplar characters for a given locale, using compiled data.
     *
     * See the [Rust documentation for `try_new_main`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html#method.try_new_main) for more information.
     */
    static createMain(locale: Locale): ExemplarCharacters;

    /**
     * Create an {@link ExemplarCharacters} for the "main" set of exemplar characters for a given locale, using a particular data source
     *
     * See the [Rust documentation for `try_new_main`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html#method.try_new_main) for more information.
     */
    static createMainWithProvider(provider: DataProvider, locale: Locale): ExemplarCharacters;

    /**
     * Create an {@link ExemplarCharacters} for the "auxiliary" set of exemplar characters for a given locale, using compiled data.
     *
     * See the [Rust documentation for `try_new_auxiliary`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html#method.try_new_auxiliary) for more information.
     */
    static createAuxiliary(locale: Locale): ExemplarCharacters;

    /**
     * Create an {@link ExemplarCharacters} for the "auxiliary" set of exemplar characters for a given locale, using compiled data.
     *
     * See the [Rust documentation for `try_new_auxiliary`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html#method.try_new_auxiliary) for more information.
     */
    static createAuxiliaryWithProvider(provider: DataProvider, locale: Locale): ExemplarCharacters;

    /**
     * Create an {@link ExemplarCharacters} for the "punctuation" set of exemplar characters for a given locale, using compiled data.
     *
     * See the [Rust documentation for `try_new_punctuation`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html#method.try_new_punctuation) for more information.
     */
    static createPunctuation(locale: Locale): ExemplarCharacters;

    /**
     * Create an {@link ExemplarCharacters} for the "punctuation" set of exemplar characters for a given locale, using compiled data.
     *
     * See the [Rust documentation for `try_new_punctuation`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html#method.try_new_punctuation) for more information.
     */
    static createPunctuationWithProvider(provider: DataProvider, locale: Locale): ExemplarCharacters;

    /**
     * Create an {@link ExemplarCharacters} for the "numbers" set of exemplar characters for a given locale, using compiled data.
     *
     * See the [Rust documentation for `try_new_numbers`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html#method.try_new_numbers) for more information.
     */
    static createNumbers(locale: Locale): ExemplarCharacters;

    /**
     * Create an {@link ExemplarCharacters} for the "numbers" set of exemplar characters for a given locale, using compiled data.
     *
     * See the [Rust documentation for `try_new_numbers`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html#method.try_new_numbers) for more information.
     */
    static createNumbersWithProvider(provider: DataProvider, locale: Locale): ExemplarCharacters;

    /**
     * Create an {@link ExemplarCharacters} for the "index" set of exemplar characters for a given locale, using compiled data.
     *
     * See the [Rust documentation for `try_new_index`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html#method.try_new_index) for more information.
     */
    static createIndex(locale: Locale): ExemplarCharacters;

    /**
     * Create an {@link ExemplarCharacters} for the "index" set of exemplar characters for a given locale, using compiled data.
     *
     * See the [Rust documentation for `try_new_index`](https://docs.rs/icu/2.1.1/icu/locale/exemplar_chars/struct.ExemplarCharacters.html#method.try_new_index) for more information.
     */
    static createIndexWithProvider(provider: DataProvider, locale: Locale): ExemplarCharacters;
}