/** * Pure utility functions for rendering - extracted for testability. */ import type { UsageStats } from "../types/flow.js"; /** * Format a token count to exactly 5 characters with leading spaces. * Shifts from k to M when value would exceed 5 chars. * Examples: 500 → " 500", 1300 → " 1.3k", 32000 → "32.0k", 950500 → "0.95M" */ export declare function formatFixedTokens(count: number): string; /** * Format flow type name to fixed width (5 chars) in lowercase with space padding. * Examples: "debug" → "debug", "scout" → "scout", "build" → "build" */ export declare function formatFlowTypeName(type: string): string; /** Format tokens-per-second to a display string. */ export declare function formatTps(value: number | undefined): string; export declare function italic(text: string): string; export declare function formatCompactStats(usage: Partial, model?: string, maxWidth?: number, options?: { skipTokens?: boolean; skipContext?: boolean; hideModel?: boolean; compressionLevel?: string; }): string; /** Lowercase the first word in a string (first run of non-whitespace chars). */ export declare function lowerFirstWord(s: string): string; export declare function formatCountdown(ms: number): string; export declare function formatModelLabel(model: string | undefined, maxTail?: number): string; export declare function formatCountdownRemaining(deadlineAtMs?: number): string | undefined; export { computeInitialContextTokens, resolveDisplayContextTokens, mergeStreamingContextTokens, } from "./context-display.js"; export declare function formatContextLabel(ctxTokens: number, maxCtxTokens?: number): string; /** Return the visible (ANSI-stripped) character count. */ export declare function visibleLength(text: string): number; /** Strip all ANSI escape sequences from a string. */ export declare function stripAnsi(text: string): string; export declare function getTruncationBudget(prefixLength: number): number; export declare function truncateChars(text: string, max: number): string; export declare function tailText(text: string, max: number): string; //# sourceMappingURL=render-utils.d.ts.map