declare function stringTruncate(str: string, length: number, ellipsis?: string): string; declare function stringToBool(str: string): boolean; /** * Returns the width of the given text of given font in pixels. * * @param {String} text The text to be rendered. * @param {String} font The css font descriptor that text is to be rendered with (e.g. "bold 14px verdana"). * * @see https://stackoverflow.com/questions/118241/calculate-text-width-with-javascript/21015393#21015393 */ declare function stringWidth(text: string, font: string): number; export { stringToBool, stringTruncate, stringWidth };