import type { DocxMeasuredBlock, DocxMeasurementBatch } from '../../../docx/docxPagination'; import type { DocxPagePreviewSource, DocxWordPreviewSummary } from '../../../docx/DocxWordPageSource'; import type { DocxPageContent } from '../../../docx/types'; import type { OfficeSearchProvider } from '../../../search/types'; import type { WordPerformanceProfile } from '../../../word/types'; import type { WordPageSourceSnapshot } from '../../../word/WordPageSource'; import type { WorkerWordSourceState } from '../../protocol/messages'; import { WorkerSourceClient } from './WorkerSourceClient'; /** 将 Worker 中长期持有的 DOCX Source 适配为现有 Viewer 接口。 */ export declare class WorkerWordPageSource implements DocxPagePreviewSource { private readonly client; readonly pages: this; readonly outline: import("../../../word/WordOutlineProvider").ProgressiveWordOutlineProvider; readonly searchProvider: OfficeSearchProvider; private readonly listeners; private readonly unsubscribeUpdate; private readonly unsubscribeFailure; private snapshot; private readonly summary; private outlineItems; private performance; private measurementBatch?; private disposed; constructor(client: WorkerSourceClient, initial: WorkerWordSourceState); getSnapshot: () => WordPageSourceSnapshot; subscribe: (listener: () => void) => () => boolean; getSummary(): DocxWordPreviewSummary; getPerformanceProfile(): WordPerformanceProfile; getOutlineItems(): import("../../../word/types").WordOutlineItem[]; getMeasurementBatch(): DocxMeasurementBatch | undefined; hasRenderableContent(): boolean; getPage(index: number, signal?: AbortSignal): Promise; ensureRange(start: number, end: number, signal?: AbortSignal): Promise; prioritizeBlock(blockId: string, signal?: AbortSignal): Promise; retainRange(start: number, end: number): () => void; retry(index: number): void; commitMeasurement(batch: DocxMeasurementBatch, measurements: readonly DocxMeasuredBlock[], durationMs: number): Promise; failMeasurement(batch: DocxMeasurementBatch, error: unknown): void; dispose(): Promise; private applyState; private emitChange; }