/** * @desc Paragraph utils functions. * @author hovenjay */ /** * 获取节点的字体相关样式 * * @param node - DOM 节点 */ export declare function getFontStyles(node: HTMLElement): string; export declare type TextInfo = { text: string; width: number; }; export declare type FullWidth = number; /** * 获取省略中间内容后的文本 * * @param text - 原始文本 * @param fontStyles - 文本渲染样式,语法同 CSS 的 font 属性 * @param maxRows - 最多显示的行数 * @param maxWidth - 单行文本的最大宽度 * @param reserveWidth - 保留宽度 */ export declare function getMiddleEllipsisText(text: string, fontStyles: string, maxWidth: number, maxRows: number, reserveWidth?: number): [TextInfo, FullWidth];