import { type DocxParseContext, type ReadBlockChildrenOptions } from './docxParsingContext'; import type { DocxBlockParseOperations } from './parseDocxBlock'; import type { DocxBlock, DocxPage, DocxPageContent, DocxPageRegionVariants } from './types'; /** DOCX 内容解析流程共享的样式、关系和资源上下文。 */ type ParseContext = DocxParseContext; /** 递归读取 DOCX 容器节点中的段落和表格。 */ export declare function readDocxBlockChildren(node: Element | null | undefined, id: string, context: ParseContext, options?: ReadBlockChildrenOptions): DocxBlock[]; declare function readPage(bodyNode: Element | null | undefined): DocxPage; /** 读取当前节的页眉、页脚页码及首页差异设置。 */ export declare function readDocxSectionPageRegions(sectPr: Element | null | undefined, context: ParseContext): Pick; declare function markTitle(blocks: DocxBlock[]): string; /** 为缺少显式段前距的首个大字号居中标题恢复 Word 封面的视觉留白。 */ export declare function applyDocxCoverTitleSpacing(blocks: DocxBlock[]): void; /** 将输入标准化为 `normalizeDocxPages` 返回的结构。 */ declare function normalizeDocxPages(pages: DocxPageContent[]): { id: string; blocks: DocxBlock[]; suppressFirstBlockSpacing: true | undefined; preservePhysicalPage: true | undefined; page: DocxPage; footnotes?: import("./types").DocxNote[] | undefined; headers?: DocxPageRegionVariants | undefined; /** DOCX 内容解析流程共享的样式、关系和资源上下文。 */ footerPageNumbers?: DocxPageRegionVariants | undefined; differentFirstPage?: boolean | undefined; }[]; /** 为物化与流式路径提供同一组 DOCX 块解析规则。 */ export declare const docxBlockParseOperations: DocxBlockParseOperations; /** 读取合成或完整 body 的默认页面属性。 */ export declare const readDocxBodyPage: typeof readPage; /** 标准化物理页 ID,并保留 WPS 整页形状的溢出拆分规则。 */ export declare const normalizeDocxPageContents: typeof normalizeDocxPages; /** 从当前已解析块推导文档标题。 */ export declare const markDocxTitle: typeof markTitle; export {};