/*! Copyright 2020 Timezynk AB Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ export declare function isValidDate(date: unknown): boolean; export declare function getWeek(date: Date): number; export declare function getWeekYear(date: Date): number; export declare function getISODateString(date: Date, separator: string): string; export declare function getTimeString(date: Date): string; export declare function getISODay(date: Date): number; export declare function getDaysFrom(date: Date, from: Date): number; export declare function getTotalDaysInMonth(date: Date): number; export declare function withParsedISODate(date: Date, str: string): Date; export declare function getEpoch(date: Date): number; export declare function addSeconds(date: Date, seconds: number): Date; export declare function addDays(date: Date, days: number): Date; export declare function addMonths(date: Date, months: number): Date; export declare function addYears(date: Date, years: number): Date; export declare function addHours(date: Date, hours: number): Date; export declare function addMinutes(date: Date, minutes: number): Date; export declare function toStartOfDay(date: Date): Date; export declare function toEndOfDay(date: Date): Date; export declare function firstDayOfWeek(date: Date): Date; export declare function lastDayOfWeek(date: Date): Date; export declare function firstDayOfMonth(date: Date): Date; export declare function lastDayOfMonth(date: Date): Date; /** * Copy time from `other` date to date while * preserving year, month and day. */ export declare function withTime(date: Date, other: Date): Date; export declare function withSeconds(date: Date, seconds: number): Date; export declare function withParsedTime(date: Date, time: string): Date; export declare function firstTimeAfter(date: Date, other: Date): Date; /** * Prints a duration in HH:MM from a timestamp in seconds */ export declare function print_duration(timestamp: number): string | null; /** * return a duration as HH h MM min * @param timestamp timestamp to print * @return duration as HH h MM min */ export declare function print_duration_long(timestamp: number | null): string | null; /** * return duration with seconds */ export declare function print_duration_full(timestamp: number): string; export declare function parseISODateTime(t: Date | number | string | null | undefined): Date | null; export declare function parseISODate(d: unknown): Date | null; /** * Adds extra utility functions to the date object * @deprecated */ export default function installDateExtensions(scope: any): void;