import { type IntlShape } from 'react-intl'; import { TimeframeV2, TimeValue } from '../../../core/types/time.js'; /** * Defines the units of time that can be used for offsetting. */ type OffsetUnit = 'y' | 'q' | 'M' | 'w' | 'd' | 'h' | 'm' | 's' | 'ms'; /** * Formats and returns the display value for given time values, including relative expressions. * @internal */ export declare function formatStepperValues(from: TimeValue | null, to: TimeValue | null, intl: IntlShape, direction: 'backward' | 'forward', selectedOverCalendar?: boolean): string; /** * Determines the lowest common denominator for OffsetUnits between two TimeValues. * @internal */ export declare const getSmallestCommonUnit: (from: TimeValue | undefined | null, to: TimeValue | undefined | null) => OffsetUnit; /** * Returns the difference between two TimeValues in the lowest possible OffsetUnit. * @internal */ export declare const getDifference: (from: TimeValue | undefined | null, to: TimeValue | undefined | null) => number; /** * Adjusts the timeframe based on the direction ('backward' or 'forward'). * Handles different types of timeframes: ISO8601, expressions, and rounded timeframes. * @internal */ export declare function getTimeShift(value: TimeframeV2, config: { direction: 'backward' | 'forward'; min?: string; max?: string; selectedOverCalendar?: boolean; precision?: 'minutes' | 'seconds' | 'milliseconds'; }): TimeframeV2 | undefined; export {};