/** * Formats a number of bytes into a human-readable string with appropriate size units. * @param bytes - The number of bytes to format * @returns A string representation of the bytes with appropriate unit (Bytes, KB, MB, etc.) * @example * formatBytes(1024) // returns "1 KB" * formatBytes(1234567) // returns "1.18 MB" */ export declare function formatBytes(bytes: number): string; /** * Converts a camelCase string into a Title Case string. * @param camelCase - The camelCase string to convert * @returns A Title Case string with spaces between words * @example * camelCaseToTitle("myVariableName") // returns "My Variable Name" * camelCaseToTitle("URL") // returns "URL" */ export declare function camelCaseToTitle(camelCase: string): string; /** * Capitalizes the first letter of string * @param str - The string to capitalize * @returns A new string with the first letter capitalized * @example * capitalize("hello world") // returns "Hello world" */ export declare function capitalize(str: string): string; /** * Truncates text to a specified word limit * @param text - The text to truncate * @param maxWords - The maximum number of words to keep (default: 10) * @returns The truncated text with "..." appended if truncated * @example * truncate("This is a very long sentence that should be truncated", 5) // returns "This is a very long..." * truncate("Short text", 10) // returns "Short text" */ export declare function truncate(text: string, maxWords?: number): string; //# sourceMappingURL=str.d.ts.map