/** Truncate long text in the middle, keeping the start and end visible. */ export declare function truncateMiddle(text: string, maxWidth: number): string; export declare function wrapPlainString(text: string, width: number): { lineText: string; startIdx: number; endIdx: number; }[]; /** Compact "time ago" label for history rows, e.g. "3m", "5h", "2d". */ export declare function relativeTime(iso: string): string; /** Last path segment of a cwd, for a short location hint in history rows. */ export declare function shortCwd(cwd: string): string;