import { type IntlShape, type MessageDescriptor } from 'react-intl'; /** * Return proper display string for given timeframe. * @deprecated Will be removed, as the TimeFrame type changed to TimeFrameV2 * @public */ export declare function formatTimeframe({ from, to }: { from?: string; to?: string; }, intl: IntlShape): string; /** * Utility function that facilitates the formatting of a timeframe * The function creates the from-string and to-string respectively and returns * the timeframe parts as an array of strings. The IntlShape passed to the * function is used to determine the language, while the IntlShape created * in the function (intlTimeFormat) is used to determine the type of time * display. * * @param from - Start date in the timeframe * @param to - End date in the timeframe * @param intl - Intl object * @param clampFutureToDateToNow - If false, the to date will not be clamped to `Now` * @returns an array of timeframe parts. * @public */ export declare function formatTimeframeToParts(from: Date, to: Date, intl: IntlShape, clampFutureToDateToNow?: boolean, separator?: MessageDescriptor): string | [string, string, string]; /** * Formats a plain date-based timeframe into a string, for display. * @param from - Start date in the timeframe * @param to - End date in the timeframe * @param intl - Intl object * @returns the formatted string * @internal */ export declare function formatTimeframePlain(from: Date, to: Date, intl: IntlShape): string;