/** CJK characters occupy 2 terminal columns; padEnd/padStart count * string length (=1 per char), which breaks alignment with mixed text. */ export declare function charColumns(c: string): number; export declare function visualWidth(s: string): number; export declare function visualPadEnd(s: string, cols: number): string; /** Truncate `s` to fit within `maxCols` visual columns, appending "…" when cut. */ export declare function truncateVisual(s: string, maxCols: number): string; export declare function progressBar(percent: number, width: number): string; export declare function fmt(n: number): string; export declare function num(v: unknown): number; export declare function fmtCost(n: number, symbol?: string, rate?: number): string; /** 紧凑数字缩写(底部状态栏用):1234 → "1.2K",1234567 → "1.2M"。 */ export declare function fmtCompact(n: number): string; /** 余额数值格式化:≥1 或 0 显示固定 2 位小数;小额(<1)保留精度(最多 6 位),避免抹成 0.00。 */ export declare function formatBalanceAmount(total: string): string;