/** * Human-readable elapsed times. * * The CLI reports durations in three unrelated places — cache age, trace timings, and * runstate phase spans — and each grew its own formatter. These are the shared ones. */ export declare const SECONDS_PER_MINUTE = 60; export declare const SECONDS_PER_HOUR = 3600; export declare const SECONDS_PER_DAY = 86400; export declare const MILLIS_PER_SECOND = 1000; /** * Seconds as the largest two units that carry information: `45s`, `5m 3s`, `2h 14m`, * `1d 3h`. * * Two units because one is too coarse to compare runs (`2h` hides 59 minutes) and three is * noise at these magnitudes. Negative input keeps its sign rather than being clamped — * a backwards span is a real signal (see `runstate-stats`), not a rendering accident. */ export declare function formatDuration(seconds: number): string; /** A duration for a table cell: human form plus the raw seconds it was derived from. */ export declare function formatDurationCell(seconds: number | null): string; /** * An age as a single rounded unit: `45s`, `3m`, `2h`, `9d`. * * Coarser than {@link formatDuration} on purpose — "how stale is this cache entry" needs * one glanceable unit, not a precise span. `suffix` appends e.g. `' ago'`. */ export declare function formatAge(ageMs: number, suffix?: string): string; //# sourceMappingURL=duration.d.ts.map