blob: ee68af10d2d1c592a31b48c6159b25fb61f44f23 [file] [log] [blame]
// generated by diplomat-tool
import type { DataError } from "./DataError"
import type { DataProvider } from "./DataProvider"
import type { TimeZone } from "./TimeZone"
import type { TimeZoneIterator } from "./TimeZoneIterator"
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/** A mapper between IANA time zone identifiers and BCP-47 time zone identifiers.
*
*This mapper supports two-way mapping, but it is optimized for the case of IANA to BCP-47.
*It also supports normalizing and canonicalizing the IANA strings.
*
*See the [Rust documentation for `IanaParser`](https://docs.rs/icu/latest/icu/time/zone/iana/struct.IanaParser.html) for more information.
*/
export class IanaParser {
get ffiValue(): pointer;
static createWithProvider(provider: DataProvider): IanaParser;
parse(value: string): TimeZone;
iter(): TimeZoneIterator;
constructor();
}