import React from 'react'; import type { MutableRefObject } from 'react'; import { type WordRevisionMode } from '../../services/annotations'; import type { OfficeFileViewerPreviewState } from '../../services/parsing/internalTypes'; import type { WordPageNavigationController } from '../word-pages/types'; import '../word-review/index.less'; import './index.less'; /** DOCX Viewer 可以消费的物化或按需预览。 */ type DocxPreview = Extract; /** DOCX预览器组件属性。 */ type DocxViewerProps = { /** 当前 DOCX 的物化或按需预览。 */ preview: DocxPreview; /** 当前预览缩放比例。 */ zoom: number; /** 文档大纲当前是否展开。 */ showOutline: boolean; /** 当前采用的 Word 修订内容投影模式。 */ wordRevisionMode: WordRevisionMode; /** 关闭文档大纲。 */ onCloseOutline: () => void; /** 搜索能力启用时切换到查找侧栏。 */ onOpenSearch?: () => void; /** 向外暴露虚拟分页导航控制器。 */ pageNavigationControllerRef?: MutableRefObject; }; /** 协调 DOCX 页面、大纲和按需内容加载。 */ declare function DocxViewerComponent({ preview, zoom, showOutline, wordRevisionMode, onCloseOutline, onOpenSearch, pageNavigationControllerRef: externalPageNavigationControllerRef, }: DocxViewerProps): React.JSX.Element; export declare const DocxViewer: React.MemoExoticComponent; export {};