import type { PreviewDocument, ResolvedPreviewDocument } from "./types.js"; export type DownloadPreviewOptions = { requestHeaders?: Record; /** Preview root (`#doc-preview-root`) — required to include annotations in the download. */ previewRoot?: HTMLElement; onProgress?: (page: number, total: number) => void; onStatus?: (message: string) => void; }; /** Download the active document; annotations on images/PDFs are baked into the file when possible. */ export declare function downloadPreviewDocument(doc: PreviewDocument, resolved: ResolvedPreviewDocument, options?: DownloadPreviewOptions): Promise; //# sourceMappingURL=download-preview-document.d.ts.map