/** * Formats a number as a string with thousands separators and no decimal places. * Example: 1234567 -> "1,234,567" */ export declare const formatCount: (n: number | { valueOf(): number; }) => string; /** * Formats a number as a string with 4 significant digits and SI prefix. * Example: 1234567 -> "1.235M" */ export declare const formatCount4: (n: number | { valueOf(): number; }) => string; /** * Formats a number as a string with thousands separators and SI prefix. * Example: 1234567 -> "1M" */ export declare const formatCountShort: (n: number | { valueOf(): number; }) => string; /** * Shortens a string to a specified maximum length by truncating and adding an ellipsis. * @param str - The string to shorten * @param maxLength - Maximum length of the resulting string (including ellipsis). Defaults to 10. * @returns The shortened string with ellipsis if truncated, or the original string if shorter than maxLength * @example * shorten("Hello World", 8) // Returns "Hello..." * shorten("Hi", 8) // Returns "Hi" */ export declare function shorten(str: string, maxLength?: number): string; //# sourceMappingURL=format.d.ts.map