export default function smartTruncate(str: string, length: number): string;