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



/**
 * A type capable of looking up a property value from a string name.
 *
 * See the [Rust documentation for `PropertyParser`](https://docs.rs/icu/2.2.0/icu/properties/struct.PropertyParser.html) for more information.
 *
 * See the [Rust documentation for `PropertyParserBorrowed`](https://docs.rs/icu/2.2.0/icu/properties/struct.PropertyParserBorrowed.html) for more information.
 *
 * See the [Rust documentation for `new`](https://docs.rs/icu/2.2.0/icu/properties/struct.PropertyParser.html#method.new) for more information.
 */
export class PropertyValueNameToEnumMapper {
    /** @internal */
    get ffiValue(): pointer;
    /** @internal */
    constructor();


    /**
     * Get the property value matching the given name, using strict matching
     *
     * Returns -1 if the name is unknown for this property
     *
     * See the [Rust documentation for `get_strict`](https://docs.rs/icu/2.2.0/icu/properties/struct.PropertyParserBorrowed.html#method.get_strict) for more information.
     */
    getStrict(name: string): number;

    /**
     * Get the property value matching the given name, using loose matching
     *
     * Returns -1 if the name is unknown for this property
     *
     * See the [Rust documentation for `get_loose`](https://docs.rs/icu/2.2.0/icu/properties/struct.PropertyParserBorrowed.html#method.get_loose) for more information.
     */
    getLoose(name: string): number;

    /**
     * Create a name-to-enum mapper for the `BidiClass` property, using compiled data.
     *
     * See the [Rust documentation for `BidiClass`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.BidiClass.html) for more information.
     */
    static createBidiClass(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `BidiClass` property, using a particular data source.
     *
     * See the [Rust documentation for `BidiClass`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.BidiClass.html) for more information.
     */
    static createBidiClassWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `CanonicalCombiningClass` property, using compiled data.
     *
     * See the [Rust documentation for `CanonicalCombiningClass`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.CanonicalCombiningClass.html) for more information.
     */
    static createCanonicalCombiningClass(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `CanonicalCombiningClass` property, using a particular data source.
     *
     * See the [Rust documentation for `CanonicalCombiningClass`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.CanonicalCombiningClass.html) for more information.
     */
    static createCanonicalCombiningClassWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `EastAsianWidth` property, using compiled data.
     *
     * See the [Rust documentation for `EastAsianWidth`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html) for more information.
     */
    static createEastAsianWidth(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `EastAsianWidth` property, using a particular data source.
     *
     * See the [Rust documentation for `EastAsianWidth`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html) for more information.
     */
    static createEastAsianWidthWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `GeneralCategory` property, using compiled data.
     *
     * See the [Rust documentation for `GeneralCategory`](https://docs.rs/icu/2.2.0/icu/properties/props/enum.GeneralCategory.html) for more information.
     */
    static createGeneralCategory(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `GeneralCategory` property, using a particular data source.
     *
     * See the [Rust documentation for `GeneralCategory`](https://docs.rs/icu/2.2.0/icu/properties/props/enum.GeneralCategory.html) for more information.
     */
    static createGeneralCategoryWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `GraphemeClusterBreak` property, using compiled data.
     *
     * See the [Rust documentation for `GraphemeClusterBreak`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.GraphemeClusterBreak.html) for more information.
     */
    static createGraphemeClusterBreak(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `GraphemeClusterBreak` property, using a particular data source.
     *
     * See the [Rust documentation for `GraphemeClusterBreak`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.GraphemeClusterBreak.html) for more information.
     */
    static createGraphemeClusterBreakWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `HangulSyllableType` property, using compiled data.
     *
     * See the [Rust documentation for `HangulSyllableType`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.HangulSyllableType.html) for more information.
     */
    static createHangulSyllableType(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `HangulSyllableType` property, using a particular data source.
     *
     * See the [Rust documentation for `HangulSyllableType`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.HangulSyllableType.html) for more information.
     */
    static createHangulSyllableTypeWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `IndicConjunctBreak` property, using compiled data.
     *
     * See the [Rust documentation for `IndicConjunctBreak`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.IndicConjunctBreak.html) for more information.
     */
    static createIndicConjunctBreak(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `IndicConjunctBreak` property, using a particular data source.
     *
     * See the [Rust documentation for `IndicConjunctBreak`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.IndicConjunctBreak.html) for more information.
     */
    static createIndicConjunctBreakWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `IndicSyllabicCategory` property, using compiled data.
     *
     * See the [Rust documentation for `IndicSyllabicCategory`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.IndicSyllabicCategory.html) for more information.
     */
    static createIndicSyllabicCategory(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `IndicSyllabicCategory` property, using a particular data source.
     *
     * See the [Rust documentation for `IndicSyllabicCategory`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.IndicSyllabicCategory.html) for more information.
     */
    static createIndicSyllabicCategoryWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `JoiningGroup` property, using compiled data.
     *
     * See the [Rust documentation for `JoiningGroup`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.JoiningGroup.html) for more information.
     */
    static createJoiningGroup(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `JoiningGroup` property, using a particular data source.
     *
     * See the [Rust documentation for `JoiningGroup`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.JoiningGroup.html) for more information.
     */
    static createJoiningGroupWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `JoiningType` property, using compiled data.
     *
     * See the [Rust documentation for `JoiningType`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.JoiningType.html) for more information.
     */
    static createJoiningType(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `JoiningType` property, using a particular data source.
     *
     * See the [Rust documentation for `JoiningType`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.JoiningType.html) for more information.
     */
    static createJoiningTypeWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `LineBreak` property, using compiled data.
     *
     * See the [Rust documentation for `LineBreak`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.LineBreak.html) for more information.
     */
    static createLineBreak(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `LineBreak` property, using a particular data source.
     *
     * See the [Rust documentation for `LineBreak`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.LineBreak.html) for more information.
     */
    static createLineBreakWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `NumericType` property, using compiled data.
     *
     * See the [Rust documentation for `NumericType`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.NumericType.html) for more information.
     */
    static createNumericType(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `NumericType` property, using a particular data source.
     *
     * See the [Rust documentation for `NumericType`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.NumericType.html) for more information.
     */
    static createNumericTypeWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `Script` property, using compiled data.
     *
     * See the [Rust documentation for `Script`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.Script.html) for more information.
     */
    static createScript(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `Script` property, using a particular data source.
     *
     * See the [Rust documentation for `Script`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.Script.html) for more information.
     */
    static createScriptWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `SentenceBreak` property, using compiled data.
     *
     * See the [Rust documentation for `SentenceBreak`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.SentenceBreak.html) for more information.
     */
    static createSentenceBreak(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `SentenceBreak` property, using a particular data source.
     *
     * See the [Rust documentation for `SentenceBreak`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.SentenceBreak.html) for more information.
     */
    static createSentenceBreakWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `VerticalOrientation` property, using compiled data.
     *
     * See the [Rust documentation for `VerticalOrientation`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.VerticalOrientation.html) for more information.
     */
    static createVerticalOrientation(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `VerticalOrientation` property, using a particular data source.
     *
     * See the [Rust documentation for `VerticalOrientation`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.VerticalOrientation.html) for more information.
     */
    static createVerticalOrientationWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `WordBreak` property, using compiled data.
     *
     * See the [Rust documentation for `WordBreak`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.WordBreak.html) for more information.
     */
    static createWordBreak(): PropertyValueNameToEnumMapper;

    /**
     * Create a name-to-enum mapper for the `WordBreak` property, using a particular data source.
     *
     * See the [Rust documentation for `WordBreak`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.WordBreak.html) for more information.
     */
    static createWordBreakWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper;
}