import { DateTimeParsingOptions } from "./typing"; /** * Converts the specified string expression of date and/or time to its equivalent {@link !Temporal.ZonedDateTime} representation. * @returns an object equivalent to the date and time contained in `expression`. * @throws {FormatError} * * the specified string expression cannot be interpreted as a valid date-time expression. * * both time zone ID and time zone offset has been specified in the `expression`, but the time zone offset * does not belong to the specified time zone ID. (e.g., `"+2:00[Asia/Shanghai]"`) * @see {@link tryParseZonedDateTime} * @see {@link parseInstant} */ export declare function parseZonedDateTime(expression: string, options?: DateTimeParsingOptions): Temporal.ZonedDateTime; /** * Tries to convert the specified string expression of date and/or time to its equivalent {@link !Temporal.ZonedDateTime} representation. * @returns an object equivalent to the date and time contained in `expression`, or `undefined` if the conversion has failed. * @see {@link parseZonedDateTime} */ export declare function tryParseZonedDateTime(expression: string, options?: DateTimeParsingOptions): Temporal.ZonedDateTime | undefined; /** * Converts the specified string expression of date and/or time to its equivalent {@link !Temporal.Instant} representation. * @returns an object equivalent to the date and time contained in `expression`. * @throws {FormatError} * * the specified string expression cannot be interpreted as a valid date-time expression. * * both time zone ID and time zone offset has been specified in the `expression`, but the time zone offset * does not belong to the specified time zone ID. (e.g., `"+2:00[Asia/Shanghai]"`) * @see {@link tryParseInstant} * @see {@link parseZonedDateTime} */ export declare function parseInstant(expression: string, options?: DateTimeParsingOptions): Temporal.Instant; /** * Tries to convert the specified string expression of date and/or time to its equivalent {@link !Temporal.Instant} representation. * @returns an object equivalent to the date and time contained in `expression`, or `undefined` if the conversion has failed. * @see {@link parseInstant} */ export declare function tryParseInstant(expression: string, options?: DateTimeParsingOptions): Temporal.Instant | undefined; //# sourceMappingURL=temporal.d.ts.map