import type { DispatchTask } from "../types.ts"; /** * Format the elapsed time of a task from startedAt to completedAt (or now). * * `formatDuration(…, "clock")`: `Xs` under a minute, `Xm Ys` under an hour, * `Xh Ym` above (the old ladder pinned everything to minutes). */ export declare function formatDuration(task: DispatchTask): string; /** * Format a millisecond duration as a human-readable age string. * * `formatDuration(…, "monitor")` after clamping negatives to zero: `0ms` for * negatives (unchanged) and the `?` sentinel — never `NaNm NaNs` — for * non-finite input. Exact-minute ages lose the trailing zero seconds * (`1m 0s` → `1m`), the monitor style's documented shape. */ export declare function formatAge(ms: number): string; /** * Format the duration between two explicit Date values. * Used by task-export where both start and end are known. * * Same `"clock"` ladder as {@link formatDuration}: `Xm Ys` rolls up to * `Xh Ym` past the hour instead of staying pinned to minutes. */ export declare function formatDurationBetween(start: Date, end: Date): string; //# sourceMappingURL=format-utils.d.ts.map