import { unitOfTime } from 'moment-timezone'; import { DateType } from '../models'; export declare const MYSQL_HOURLY_FORMAT = "%Y-%m-%dT%H:00:00.000Z"; export declare const DATE_TIME_FORMAT_WITH_TIMEZONE = "DD-MM-YYYY hh:mm:ss Z"; export declare const DATE_TIME_FORMAT = "DD-MM-YYYY hh:mm:ss"; export declare const DATE_FORMAT = "YYYY-MM-DD"; export declare const OPEN_REDMIT_DATE_FORMAT = "YYYYMMDD"; export declare const FNS_DATE_FORMAT = "dd-MM-yyyy"; export declare const FNS_DATE_TIME_FORMAT = "dd/MM/yyyy HH:mm:ss"; export declare const FNS_DATE_ACTION_FORMAT = "dd MMMM yyyy"; export declare const FNS_DATE_TIME_ACTION_FORMAT = "dd MMMM yyyy, hh:mm a"; export declare const FNS_DATE_TIME_UTC_ACTION_FORMAT = "dd-MM-yyyy hh:mm:ss a"; export declare const FNS_DATE_TIME_AUDIT_LOG_FORMAT = "dd-MM-yyyy HH:mm:ss (z)"; export declare const FNS_DATE_HOUR = "dd-MM-yyyy HH:mm"; export declare const formatDate: (date: DateType) => string; export declare const formatDateHour: (date: DateType) => string; export declare const formatDateTime: (date: DateType) => string; export declare const formatDateTimeAction: (date: DateType) => string; export declare const formatDateTimeUTCAction: (date: DateType) => string; export declare const formatDateTimeAuditLog: (date: DateType) => string; export declare const formatDateAction: (date: DateType) => string; export declare const formatDateWithFormat: (date: DateType, _format: string) => string; export declare function formatDateTimeTZ(date: DateType, timezone?: string): string; export declare function formatDateTZ(date: DateType, timezone?: string): string; export declare function getIsoWeek(): { week: number; year: number; }; export declare function nextDays(days: number): Date; export declare function addMonths(date: DateType, months: number): Date; export declare function addHours(date: DateType, hours: number): Date; export declare function addMinutes(date: DateType, minutes: number): Date; export declare function differentMonth(date: DateType, date1: DateType): number; export declare function differentSecond(date: DateType, date1: DateType): number; export declare function differentMin(date: DateType, date1: DateType): number; export declare function getHourRange(date?: Date): { begin: Date; end: Date; }; export declare function formatOpenRedmitDate(date: DateType): string; export declare const formatDateFromFormat: (date: string, fromFormat: string, toFormat: string) => string; export declare const getStartDate: () => Date; export declare const getEndDate: () => Date; export declare const getStartDateOfMonth: () => Date; export declare const MAX_TO_DATE: Date; /** * @param d1 {Date | string} greater date * @param d2 {Date | string} smaller date * @param f {string} format * @param u unit * @returns {number} */ export declare const diffDateWithFormat: (d1: DateType, d2: DateType, f: string, u: unitOfTime.Diff) => number; export declare function formatTimeTZ(date: DateType, timezone: string, format: string): string; export declare function formatTimeUTC(date: DateType, format?: string): string; export declare function openRemitDate(d: DateType): string; export declare function formatMilliseconds(ms: number): string;