import { type IntlShape } from "react-intl"; /** * A duration broken into displayable parts. Kept as plain numbers so the translated string can * be assembled separately, in whichever locale is active. * @internal */ export interface IDurationParts { minutes: number; /** Seconds remainder, rounded to one decimal place when there are no whole minutes. */ seconds: number; } /** * Splits a millisecond duration into minutes/seconds, keeping one decimal place of precision * below a minute (0.2, 13.6), so a short step doesn't collapse to "0". * @internal */ export declare function computeDurationParts(ms: number): IDurationParts; /** * Formats a millisecond duration as a translated string, e.g. "0.2s", "13.6s", "1m 5s", "1m". * @internal */ export declare function formatDuration(intl: IntlShape, ms: number): string; //# sourceMappingURL=formatDuration.d.ts.map