import { type IntlShape } from 'react-intl'; import { type RequireAtLeastOne } from 'type-fest'; import type { TimeValue, TimeframeV2 } from '../../../core/types/time.js'; import type { TimeframeSelectorPresetItemProps } from '../Item.js'; /** * @public */ export declare const TIMEFRAME_SELECTOR_PRESETS: Array; /** * Check if a date is a given min or max. Returns false if both min and max are missing. * @internal */ export declare function dateIsMinMax(date: TimeValue, min?: string, max?: string): boolean; /** * Check if the date value is larger than the max value. * Returns false if the max or value are not defined. * @internal */ export declare function isBiggerThan(candidate?: string, threshold?: string): boolean; /** * Check if the date value is smaller than the min value. * Returns false if the value or min are not defined. * @internal */ export declare function isSmallerThan(candidate?: string, threshold?: string): boolean; /** * Check if the value is outside the min - max range. * Returns false if the value is not defined, it the from or to values are undefined, or if min and max are both missing. * @internal */ export declare function _isOutsideRange(value?: { /** Start of the time frame. */ from?: string; /** End of the time frame. */ to?: string; } | RequireAtLeastOne | null, min?: string, max?: string): boolean; /** * Type guard function that will check if the value is TimeframeV2 with absoluteDate. * @internal */ export declare function isTimeframeV2WithFromAndTo(date: RequireAtLeastOne<{ from: string; to: string; }> | RequireAtLeastOne | null): date is TimeframeV2; /** * Type guard function that will check if the value is a TimeframeV2 or from and to String. * @internal */ export declare function isTimeframeV2OrFromToString(date: RequireAtLeastOne<{ from: string; to: string; }> | RequireAtLeastOne | null): date is { from: string; to: string; } | TimeframeV2; /** * Formats and returns the duration of the timeframe. * @internal */ export declare function formatTimeframeDuration(from: TimeValue | null, to: TimeValue | null, intl: IntlShape): string;