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



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


    /**
     * construct a {@link PluralRulesWithRanges} for the given locale, for cardinal numbers, using compiled data.
     *
     * See the [Rust documentation for `try_new_cardinal`](https://docs.rs/icu/2.2.0/icu/plurals/struct.PluralRulesWithRanges.html#method.try_new_cardinal) for more information.
     */
    static createCardinal(locale: Locale): PluralRulesWithRanges;

    /**
     * construct a {@link PluralRulesWithRanges} for the given locale, for cardinal numbers, using a particular data source.
     *
     * See the [Rust documentation for `try_new_cardinal`](https://docs.rs/icu/2.2.0/icu/plurals/struct.PluralRulesWithRanges.html#method.try_new_cardinal) for more information.
     */
    static createCardinalWithProvider(provider: DataProvider, locale: Locale): PluralRulesWithRanges;

    /**
     * Construct a {@link PluralRulesWithRanges} for the given locale, for ordinal numbers, using compiled data.
     *
     * See the [Rust documentation for `try_new_ordinal`](https://docs.rs/icu/2.2.0/icu/plurals/struct.PluralRulesWithRanges.html#method.try_new_ordinal) for more information.
     */
    static createOrdinal(locale: Locale): PluralRulesWithRanges;

    /**
     * Construct a {@link PluralRulesWithRanges} for the given locale, for ordinal numbers, using a particular data source.
     *
     * See the [Rust documentation for `try_new_ordinal`](https://docs.rs/icu/2.2.0/icu/plurals/struct.PluralRulesWithRanges.html#method.try_new_ordinal) for more information.
     */
    static createOrdinalWithProvider(provider: DataProvider, locale: Locale): PluralRulesWithRanges;

    /**
     * Get the category for a given number represented as operands
     *
     * See the [Rust documentation for `category_for_range`](https://docs.rs/icu/2.2.0/icu/plurals/struct.PluralRulesWithRanges.html#method.category_for_range) for more information.
     */
    categoryForRange(start: PluralOperands, end: PluralOperands): PluralCategory;
}