/** * @description: 根据文本计算大概宽度 */ declare const countWordsLength: (text: string) => number; /** * @description: 根据长度截断字符串,用省略号补充 */ declare const sliceWordsByWidth: (text: string | undefined, wt: number) => string; export default countWordsLength; export { sliceWordsByWidth };