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



/**
 * A mapper between Windows time zone identifiers and BCP-47 time zone identifiers.
 *
 * This mapper supports two-way mapping, but it is optimized for the case of Windows to BCP-47.
 * It also supports normalizing and canonicalizing the Windows strings.
 *
 * See the [Rust documentation for `WindowsParser`](https://docs.rs/icu/2.2.0/icu/time/zone/windows/struct.WindowsParser.html) for more information.
 */
export class WindowsParser {
    /** @internal */
    get ffiValue(): pointer;


    /**
     * Create a new {@link WindowsParser} using a particular data source
     *
     * See the [Rust documentation for `new`](https://docs.rs/icu/2.2.0/icu/time/zone/windows/struct.WindowsParser.html#method.new) for more information.
     */
    static createWithProvider(provider: DataProvider): WindowsParser;

    /**
     * See the [Rust documentation for `parse`](https://docs.rs/icu/2.2.0/icu/time/zone/windows/struct.WindowsParserBorrowed.html#method.parse) for more information.
     */
    parse(value: string, region: string): TimeZone | null;

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