export default textHelper; declare namespace textHelper { function measureTextWidth(text: any): any; function lineWrap(text: any, width: any, font: any, maxNumLines: any): any; function wordWrap(lines: any, width: any, font: any, maxNumLines: any, ellipsis: any): any; /** * Truncates a single line of text if the text does not fit inside the given width. * @param text * @param {Number} width * @param {String} font * @returns {{text: String, rest: String}} */ function truncate(text: any, width: number, font: string, ellipsis?: string): { text: string; rest: string; }; function isNumber(v: any): boolean; /** * Splits a word into parts <= width . * @ignore * @param text * @param width * @param maxNumLines */ function explodeWord(text: any, width: any, maxNumLines: any, charWidth: any): any[]; function splitWord(text: any, width: any, font: any, maxNumLines: any): any[]; function wrapText(text: any, maxWidth: any, font: any, maxNumLines: any, ellipsis: any): any; function getFontHeight(font: any): number; function tokenize(text: any, font: any, ellipsis: any, maxNumLines: any, maxWidth: any, maxHeight: any, lineHeightMultiplicator?: number): any; }