/** * Truncate the middle of the given text, if it's longer than the given length. */ export default function truncateMiddle(text: string, length?: number): string;