/** * Shared display utility functions used by both the CLI monitor and TUI sidebar. * * Pure functions — no side effects, no I/O, no framework imports. * * @module */ /** * Format a millisecond duration as a human-readable string. * Returns "?" for invalid or negative inputs. * * One-line delegation to `formatDuration(…, "monitor")` in `./text-format.ts`. */ export declare function formatDuration(ms: number): string; /** * Format a millisecond duration as a compact single-unit string for inline display. * Returns "0s" for zero or negative values. * * One-line delegation to `formatDuration(…, "narrow")` in `./text-format.ts`. */ export declare function compactDuration(ms: number): string; /** * Truncate a string with an ellipsis character ("…") if it exceeds maxLen. * * One-line delegation to `truncateText` in `./text-format.ts`. CONTRACT * CHANGE: `maxLen` is a display-COLUMN budget that includes the ellipsis; at * HEAD it budgeted UTF-16 code units. The two agree for ASCII but not for wide * characters — CJK and emoji occupy two columns each, so * `truncate("你好世界", 3)` is `"你…"`. The column budget is the correct * semantic for a terminal width budget and is what makes composition with the * padding helpers meaningful. */ export declare function truncate(s: string, maxLen: number): string; /** * Shorten a session ID for display. For IDs of 15 characters or more, strips the * `ses_` prefix (if present) and shows `first3…last5`. Falls back to the original * ellipsis-prefixed-last-8 behavior for shorter IDs. */ export declare function shortSessionId(id: string): string; /** * Compute the number of filled and empty segments for a progress bar * of the given width. * * One-line delegation to `progressBarParts` in `./text-format.ts`. */ export declare function barSegments(current: number, total: number, width?: number): { filled: number; empty: number; }; /** * Canonical glyph table for status display. * Returns just the glyph (caller adds color). */ export declare function statusGlyph(status: string): string; //# sourceMappingURL=display-helpers.d.ts.map