/** * Truncates a string to a maximum length, appending an ellipsis if needed. * Ensures no trailing whitespace before the ellipsis. * * @param text - The string to truncate * @param maxLength - The maximum allowed length (including ellipsis) * @returns The truncated string */ export declare function truncateWithEllipsis(text: string, maxLength: number): string;