import { Moment } from "moment"; import DateFormatter from "./date_formatter"; import type { DateLike } from "type_aliases"; export declare class DateConverter { static getLocalizedDateFormatter(): DateFormatter; static getDateFormatter(format: string, secondaryFormat?: string): DateFormatter; static dateToText(date: Date, format: string): string; static instantToDate(instant: number): Date | null; static dateToInstant(date: Date): number | null; static localDateToMoment(localDate: string): Moment | null; static dateToLocalDate(date: DateLike): string; static millisecondsToDate(epochMillis: number): Date | null; static isValidDate(value: any): boolean; static isValidDateString(value: string): boolean; static tsvStringToDate(dateString: string): Date; /** * truncate 2 dates to days and compare * @param date1 * @param date2 * @returns true when date2 is on or after the day of date1; * false if either date1 or date2 is null */ static isOnOrAfterDay(date1: Date | string, date2: Date | string): boolean; /** * truncate 2 dates to days and compare * @param date1 * @param date2 * @returns true when date2 is on the same day as date1 */ static isOnDay(date1: Date | string, date2: Date | string): boolean; private static dateToString; static dateToISO(date: DateLike): string; private static pad; static dateLikeToDate(date: DateLike): Date; } export default DateConverter;