import { Instant } from './Instant.js'; import { DayOfMonthNumber, LocalDate, MonthNumber } from './LocalDate.js'; import { LocalDateTime } from './LocalDateTime.js'; import { HourNumber, LocalTime, MinuteNumber } from './LocalTime.js'; import { ZoneId, ZoneIdString } from './ZoneId.js'; import { ISOSerializationOptions } from './util/ISOSerializationOptions.js'; export declare class ZonedDateTime { private readonly zonedMoment; /** * @deprecated Use {@link of} instead */ constructor(jsDate: Date, zoneId: ZoneId); static of(year: number, month: MonthNumber | number, dayOfMonth: DayOfMonthNumber | number, timeZone: ZoneId | ZoneIdString | string, hour?: HourNumber | number, minute?: MinuteNumber | number): ZonedDateTime; static of(date: LocalDate, timeZone: ZoneId | ZoneIdString | string, time?: LocalTime): ZonedDateTime; static of(jsDate: Date, timeZone: ZoneId | ZoneIdString | string): ZonedDateTime; static now(): ZonedDateTime; /** * Instantiates a {@link ZonedDateTime} of the instant expressed by the supplied {@link Date}. Because a * {@link Date} carries no time zone information, time zone is obtained with {@link ZoneId.browser()}. */ static fromJS(jsDate: Date): ZonedDateTime; toInstant(): Instant; toLocalDate(): LocalDate; toLocalTime(): LocalTime; toLocalDateTime(): LocalDateTime; get year(): number; /** * Month number, 1...12 */ get month(): MonthNumber; /** * The day of the month, 1...31 */ get day(): DayOfMonthNumber; get hour(): HourNumber; get minute(): MinuteNumber; get second(): number; get milli(): number; /** * Writes this {@link ZonedDateTime} as a string in specified format, and returns it. * @param formatString The format in which to write the date. The following substrings * (expressed in bold) will get translated to the the following values: *