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AAE,CAAC,GAAG,QAAQ,CAAC;IAC7B,KAAK,CAAC,QAAQ,EAAE,CAAC,GAAG,QAAQ,CAAC;IAC7B,QAAQ,IAAI,MAAM,CAAC;IACnB,WAAW,IAAI,MAAM,CAAC;IACtB,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC;IAC1B,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC;CAC/B","file":"types.d.ts","sourcesContent":["/*!\r\n   Copyright 2019 Ron Buckton\r\n\r\n   Licensed under the Apache License, Version 2.0 (the \"License\");\r\n   you may not use this file except in compliance with the License.\r\n   You may obtain a copy of the License at\r\n\r\n       http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n   Unless required by applicable law or agreed to in writing, software\r\n   distributed under the License is distributed on an \"AS IS\" BASIS,\r\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n   See the License for the specific language governing permissions and\r\n   limitations under the License.\r\n*/\r\nimport { Duration } from './Duration';\r\n\r\nexport type Components<Unit extends string> = Partial<Record<Unit, number>>;\r\nexport type DateUnit = \"year\" | \"month\" | \"day\";\r\nexport type WeekDateUnit = \"year\" | \"weekOfYear\" | \"dayOfWeek\";\r\nexport type OrdinalDateUnit = \"year\" | \"dayOfYear\";\r\nexport type TimeUnit = \"hour\" | \"minute\" | \"second\" | \"millisecond\" | \"nanosecond\";\r\n/**\r\n * Components with a nominal duration.\r\n */\r\nexport type DateDelta = \"years\" | \"months\" | \"days\";\r\n/**\r\n * Components with an accurate duration.\r\n */\r\nexport type TimeDelta = \"hours\" | \"minutes\" | \"seconds\" | \"milliseconds\" | \"nanoseconds\";\r\nexport type InstantUnit = \"milliseconds\" | \"nanoseconds\";\r\nexport type InstantDelta = \"milliseconds\" | \"nanoseconds\";\r\nexport type TemporalDelta = DateDelta | TimeDelta | InstantDelta;\r\nexport type TemporalUnit = DateUnit | TimeUnit | InstantUnit;\r\n\r\nexport interface Temporal<T extends Temporal<T> = any> {\r\n    plus(deltas?: Components<TemporalDelta>): T;\r\n    minus(deltas?: Components<TemporalDelta>): T;\r\n    with(components?: Components<TemporalUnit>): T;\r\n    until(temporal: T): Duration;\r\n    since(temporal: T): Duration;\r\n    toString(): string;\r\n    toISOString(): string;\r\n    equals(other: T): boolean;\r\n    compareTo(other: T): number;\r\n}"],"sourceRoot":""}