import type { OfficeArchiveResourcePolicy } from '../../shared/resource/OfficeResourcePolicy'; import type { OfficeSourcePreviewFactory } from '../parsing/formatParserRegistry'; import { type PresentationPerformanceProfile } from '../presentation/presentationPerformance'; import { PresentationSearchProvider } from '../presentation/PresentationSearchProvider'; import type { PresentationSource, PresentationSourceSnapshot, SlideModel, SpeakerNotesModel } from '../presentation/types'; import type { PptxPackageContext } from './PptxPackageContext'; import { type ProfiledPptxArchive } from './readPptxStructure'; /** 提供 PPTX 当前页优先、邻近预取和可重试缓存能力。 */ export declare class PptxPresentationSource implements PresentationSource { private readonly context; readonly searchProvider: PresentationSearchProvider; private readonly listeners; private descriptors; private readonly slideStore; private readonly slideRequests; private readonly notesRequests; private readonly notes; private revision; private warnings; private disposed; private disposePromise?; private performance; private snapshot; constructor(context: PptxPackageContext, performance: PresentationPerformanceProfile); private ensureAvailable; private publish; private createSnapshot; private updateDescriptor; 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; } /** 从已完成中央目录画像的 Reader 创建大型 PPTX 数据源。 */ export declare function createPptxPresentationSourceFromArchive(archive: ProfiledPptxArchive, sessionId: string, signal?: AbortSignal): Promise; /** 仅在 PPTX 画像命中大文件阈值时创建按页预览源。 */ export declare const tryCreatePptxSourcePreview: OfficeSourcePreviewFactory; /** 打开并创建大型 PPTX 数据源,失败时保证 Reader 被关闭。 */ export declare function createPptxPresentationSource(file: File, sessionId: string, signal?: AbortSignal, resourcePolicy?: OfficeArchiveResourcePolicy): Promise;