import { AbsoluteTimeRange, TimeRangeValue } from '@perses-dev/spec'; export declare const DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss"; export interface CustomTimeOption { value: TimeRangeValue | undefined; display: string; } export declare function buildCustomTimeOption(value: AbsoluteTimeRange | undefined, timeZone: string): CustomTimeOption; /** * Date validation and check if end is after start */ export declare function validateDateRange(startDate: Date, endDate: Date): boolean; /** * Format start and end time based on provided date format * @param timeRange absolute time range with a start and end datetime * @param dateFormat date format string * @param timeZone */ export declare function formatAbsoluteRange(timeRange: AbsoluteTimeRange, dateFormat: string, timeZone?: string): string; /** * Format the time range for display purpose only (e.g. in the selector) * @param value * @param timeZone */ export declare function formatTimeRange(value: TimeRangeValue | undefined, timeZone: string): string; //# sourceMappingURL=utils.d.ts.map