import type { RequireAtLeastOne } from 'type-fest'; import type { DateRangeSelectorValueType } from './types.js'; import type { TimeframeV2, TimeValue } from '../../core/types/time.js'; /** * Compares two given timevalue objects with each other */ export declare function isEqualTimeValue(tv1: TimeValue | string | null, tv2: TimeValue | string | null): boolean; /** * Compares two given RangeSelection objects with each other */ export declare function isEqualRangeSelection(tf1: DateRangeSelectorValueType, tf2: DateRangeSelectorValueType): boolean; /** * Removes the specified precision from a ISOString. * @internal */ export declare function removePrecision(isoString: string, precision?: 'day' | 'minutes' | 'seconds' | 'milliseconds'): string; /** * Removes the specified precision from a TimeframeV2 or returns the input unchanged. * @internal */ export declare const removePrecisionFromTimeFrameV2: (date: RequireAtLeastOne<{ from: string; to: string; }> | RequireAtLeastOne | null | undefined, precision?: "day" | "minutes" | "seconds" | "milliseconds") => RequireAtLeastOne<{ from: string; to: string; }> | RequireAtLeastOne | null | undefined; /** * Removes the specified precision from a TimeValue or returns the input unchanged. * @internal */ export declare const removePrecisionFromTimeValue: (date: TimeValue | null, precision?: "day" | "minutes" | "seconds" | "milliseconds") => TimeValue | null;