import type { CSSProperties } from 'react'; import type { DocxParagraphBlock, DocxTextStyle } from '../../services/docx/types'; import type { OfficeFontFamilyResolver } from '../../services/fonts/types'; /** 按 OOXML 脚本提示调整字体链,避免系统字体链接改变东亚文字字宽。 */ export declare function resolveDocxTextFontFamily(style?: DocxTextStyle, resolveFontFamily?: OfficeFontFamilyResolver): string | undefined; /** 为东亚字体运行恢复 OOXML 单独声明的西文字体链。 */ export declare function resolveDocxLatinFontFamily(style?: DocxTextStyle, resolveFontFamily?: OfficeFontFamilyResolver): string | undefined; /** 还原 Office 形状中微软雅黑粗体使用的字体场景基线。 */ export declare function resolveDocxShapeBaselineOffset(style?: DocxTextStyle): number | undefined; /** 将 DOCX 文本样式转换为 React CSS 属性。 */ export declare function buildDocxTextStyle(style?: DocxTextStyle, options?: { /** 是否将背景样式写入渲染结果。 */ includeBackground?: boolean; }, resolveFontFamily?: OfficeFontFamilyResolver): CSSProperties; /** 获取 `getDocxEmptyParagraphHeight` 返回的数据。 */ export declare function getDocxEmptyParagraphHeight(block: DocxParagraphBlock): number; /** 将 DOCX 行高转换为 CSS 可识别的倍率或像素值。 */ export declare function getDocxCssLineHeight(block: DocxParagraphBlock): string | number | undefined; /** * 读取分页测量使用的流式块高度,跳过修订投影后不再参与排版的隐藏块。 */ export declare function measureVisibleDocxBlockHeight(elements: readonly HTMLElement[], index: number): number; /** 按页面网格修正纯行内对象段落,并把同一高度写回最终渲染模型。 */ export declare function alignDocxInlineObjectParagraphToGrid(element: HTMLElement, block: DocxParagraphBlock, measuredHeight: number, gridLineHeight: number | undefined): { block: DocxParagraphBlock; height: number; };