import moment from 'moment-timezone'; /** * Format timestamp according to timezone * If no timezone provided - use company timezone * @param {Number} timestamp - Timestamp in seconds * @param {String} format - 'moment' format * @param {String} tz - 'moment' timezone * @return {String} - Formatted date */ export declare const formatTimestamp: (timestamp: number, format: string) => string; /** * Format timestamp to 'last data update' format * @param {Number} timestamp - Timestamp in seconds * @param {Boolean} useCompanyTimezone - Use user's company timezone otherwise browser (by default) * @return {String} - Formatted date */ export declare const formatLastDataUpdate: (timestamp: number) => string; /** * Get milliseconds from start of given day * @param mmt {moment.js} * @returns {number} - Integer */ export declare const getDurationFromDayStart: (mmt: moment.js) => number; /** * Extract day time from given timestamps * Day time is time from 6am to 18pm * @param start {number} * @param end {number} * @returns {number} - daytime seconds */ export declare const getDayTimeDuration: (start: number, end: number) => number; export declare const convertDateStringToUnixTimestamp: (dateString: any) => number; //# sourceMappingURL=time.d.ts.map