import * as moment from "moment-timezone"; import { RangeDate, WorkingTime } from "../../model/time"; type DateType = Date | string; export declare function formatDateTimeTZ(date: DateType, timezone?: string, format?: string): string; export declare const getDate: (date: DateType, tz?: string) => moment.Moment; export declare function endOfHour(date: DateType, tz?: string): Date; export declare function startOfMin(date: DateType, tz?: string): Date; export declare function endOfMin(date: DateType, tz?: string): Date; export declare function startOfHour(date: DateType, tz?: string): Date; export declare function endOfDate(date: DateType, tz?: string): Date; export declare function startOfDate(date: DateType, tz?: string): Date; export declare function addSeconds(date: DateType, seconds: number, tz?: string): Date; export declare function addHours(date: DateType, hours: number, tz?: string): Date; export declare function addDays(date: DateType, days: number, tz?: string): Date; export declare function addMonths(date: DateType, months: number, tz?: string): Date; export declare function addMin(date: DateType, min: number, tz?: string): Date; /** * Week start from sunday * @param date * @param tz */ export declare function startOfWeeks(date: DateType, tz?: string): Date; export declare const startOfWeek: typeof startOfWeeks; export declare function endOfWeek(date: DateType, tz?: string): Date; export declare function startOfMonth(date: DateType, tz?: string): Date; export declare function endOfMonth(date: DateType, tz?: string): Date; export declare function startLastMonth(date: DateType, tz?: string): Date; export declare function endLastMonth(date: DateType, tz?: string): Date; export declare function lastWeek(date: DateType, tz?: string): Date; export declare function differentMinute(date: DateType, date1: DateType): number; export declare function formatTimeTZ(date: DateType, timezone?: string, format?: string): string; export declare function formatDateTime(date: DateType, format?: string): string; export declare const parseDateTimeByFormat: (dateStr: string, format?: string, timezone?: string) => Date; export declare const getListHour: (fromTime: Date, toTime: Date, hourStep?: number) => Date[]; export declare const getListMinute: (fromTime: Date, toTime: Date, minStep?: number) => { from: Date; to: Date; }[]; export declare const getListRangeTime: (fromTime: Date, toTime: Date, min?: number) => { startTime: Date; endTime: Date; }[]; export declare const getLastRangeMinute: (rangeMin: number, fromDate?: Date) => { start: Date; end: Date; }; export declare const getTimeZoneOffset: (timezone: string) => string; export declare const getTimeOfDate: (date: Date) => number; export declare const isRangeTimeOverlap: (range1: RangeDate, range2: RangeDate) => boolean; export declare const isInWorkingHour: (workingHours: WorkingTime, date?: Date, tz?: string) => boolean; export {};