import type { DocBinaryContent, DocTextSegment } from './docParseTypes'; import type { DocNoteReference, DocNotes } from './types'; /** DOC 主文档中的脚注或尾注引用位置。 */ export type DocNoteReferencePosition = DocNoteReference & { /** 引用字符在主文档 story 中的字符位置。 */ charPosition: number; }; /** DOC 注释解析结果。 */ export type DocNoteParseResult = { /** 可按正文引用呈现的脚注和尾注正文。 */ notes?: DocNotes; /** 主文档中全部脚注和尾注引用位置。 */ references: DocNoteReferencePosition[]; /** 损坏或暂不支持的注释结构警告。 */ warnings: string[]; }; /** 读取 DOC/WPS 的脚注、尾注及主文档引用。 */ export declare function parseDocNotes(input: { /** WordDocument 主流。 */ wordDocument: Uint8Array; /** FIB 指定的 Table 流。 */ tableStream: Uint8Array; /** 已建立 Piece Table 与格式范围的二进制内容索引。 */ content: DocBinaryContent; /** 长任务检查点。 */ checkpoint(): Promise; }): Promise; /** 将主文档引用字符拆成独立片段,供块构建器生成可交互上标。 */ export declare function attachDocNoteReferences(segments: DocTextSegment[], references: readonly DocNoteReferencePosition[]): DocTextSegment[];