import type { PresentationSource, PresentationSourceSnapshot } from '../../../presentation/PresentationSource'; import type { PresentationAnnotation, SlideModel, SpeakerNotesModel } from '../../../presentation/types'; import type { OfficeSearchProvider } from '../../../search/types'; import type { WorkerPresentationSourceState } from '../../protocol/messages'; import { WorkerSourceClient } from './WorkerSourceClient'; /** 将 Worker 中长期持有的 PPTX Source 适配为现有幻灯片接口。 */ export declare class WorkerPresentationSource implements PresentationSource { private readonly client; readonly searchProvider: OfficeSearchProvider; private readonly listeners; private readonly unsubscribeUpdate; private readonly unsubscribeFailure; private snapshot; private disposed; constructor(client: WorkerSourceClient, initial: WorkerPresentationSourceState); getSnapshot: () => PresentationSourceSnapshot; subscribe: (listener: () => void) => () => boolean; getSlide(index: number, signal?: AbortSignal): Promise; getSpeakerNotes(index: number, signal?: AbortSignal): Promise; getAnnotations(index: number, signal?: AbortSignal): Promise; ensureRange(start: number, end: number, signal?: AbortSignal): Promise; retainRange(start: number, end: number): () => void; retry(index: number): void; dispose(): Promise; private emitChange; }