/*! Copyright 2019 Ron Buckton Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ import { Duration } from './Duration'; export declare type Components = Partial>; export declare type DateUnit = "year" | "month" | "day"; export declare type WeekDateUnit = "year" | "weekOfYear" | "dayOfWeek"; export declare type OrdinalDateUnit = "year" | "dayOfYear"; export declare type TimeUnit = "hour" | "minute" | "second" | "millisecond" | "nanosecond"; /** * Components with a nominal duration. */ export declare type DateDelta = "years" | "months" | "days"; /** * Components with an accurate duration. */ export declare type TimeDelta = "hours" | "minutes" | "seconds" | "milliseconds" | "nanoseconds"; export declare type InstantUnit = "milliseconds" | "nanoseconds"; export declare type InstantDelta = "milliseconds" | "nanoseconds"; export declare type TemporalDelta = DateDelta | TimeDelta | InstantDelta; export declare type TemporalUnit = DateUnit | TimeUnit | InstantUnit; export interface Temporal = any> { plus(deltas?: Components): T; minus(deltas?: Components): T; with(components?: Components): T; until(temporal: T): Duration; since(temporal: T): Duration; toString(): string; toISOString(): string; equals(other: T): boolean; compareTo(other: T): number; }