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



/**
 * See the [Rust documentation for `EastAsianWidth`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html) for more information.
 */
export class EastAsianWidth {

    /** @internal */
    static fromValue(value: EastAsianWidth | string): EastAsianWidth;

    get value(): string;

    /** @internal */
    get ffiValue(): number;

    /**
     * See the [Rust documentation for `Neutral`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html#associatedconstant.Neutral) for more information.
     */
    static Neutral : EastAsianWidth;
    /**
     * See the [Rust documentation for `Ambiguous`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html#associatedconstant.Ambiguous) for more information.
     */
    static Ambiguous : EastAsianWidth;
    /**
     * See the [Rust documentation for `Halfwidth`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html#associatedconstant.Halfwidth) for more information.
     */
    static Halfwidth : EastAsianWidth;
    /**
     * See the [Rust documentation for `Fullwidth`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html#associatedconstant.Fullwidth) for more information.
     */
    static Fullwidth : EastAsianWidth;
    /**
     * See the [Rust documentation for `Narrow`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html#associatedconstant.Narrow) for more information.
     */
    static Narrow : EastAsianWidth;
    /**
     * See the [Rust documentation for `Wide`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html#associatedconstant.Wide) for more information.
     */
    static Wide : EastAsianWidth;


    /**
     * See the [Rust documentation for `for_char`](https://docs.rs/icu/2.2.0/icu/properties/props/trait.EnumeratedProperty.html#tymethod.for_char) for more information.
     */
    static forChar(ch: codepoint): EastAsianWidth;

    /**
     * Get the "long" name of this property value (returns empty if property value is unknown)
     *
     * See the [Rust documentation for `get`](https://docs.rs/icu/2.2.0/icu/properties/struct.PropertyNamesLongBorrowed.html#method.get) for more information.
     */
    longName(): string | null;

    /**
     * Get the "short" name of this property value (returns empty if property value is unknown)
     *
     * See the [Rust documentation for `get`](https://docs.rs/icu/2.2.0/icu/properties/struct.PropertyNamesShortBorrowed.html#method.get) for more information.
     */
    shortName(): string | null;

    /**
     * Convert to an integer value usable with ICU4C and `CodePointMapData`
     *
     * See the [Rust documentation for `to_icu4c_value`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html#method.to_icu4c_value) for more information.
     */
    toIntegerValue(): number;

    /**
     * Convert from an integer value from ICU4C or `CodePointMapData`
     *
     * See the [Rust documentation for `from_icu4c_value`](https://docs.rs/icu/2.2.0/icu/properties/props/struct.EastAsianWidth.html#method.from_icu4c_value) for more information.
     */
    static fromIntegerValue(other: number): EastAsianWidth | null;

    static tryFromStr(s: string): EastAsianWidth | null;

    constructor(value: EastAsianWidth | string );
}