// generated by diplomat-tool import type { Calendar } from "./Calendar" import type { Date } from "./Date" import type { Rfc9557ParseError } from "./Rfc9557ParseError" import type { Time } from "./Time" import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; /** * An ICU4X DateTime object capable of containing a date and time for any calendar. * * See the [Rust documentation for `DateTime`](https://docs.rs/icu/2.1.1/icu/time/struct.DateTime.html) for more information. */ export class DateTime { get date(): Date; get time(): Time; /** @internal */ constructor(); /** * Creates a new {@link DateTime} from an IXDTF string. * * See the [Rust documentation for `try_from_str`](https://docs.rs/icu/2.1.1/icu/time/struct.DateTime.html#method.try_from_str) for more information. */ static fromString(v: string, calendar: Calendar): DateTime; }