📄 src/downloader/index.ts
D-OPEN SOVEREIGN
1/*
2 * Copyright (c) 2026 DataPond D-Library Pty Ltd. ("The Sanctuary")
3 * Non-Profit Public Library — The World Library
4 *
5 * D-SAFE Certification issued by POND Enterprise.
6 * Published under the D-Open Code Sovereign Licence v1.0 framework
7 * DataPond D-Library All exclusive Right reserved on modifiying the code - CC Attribution to data pond, Non modifiable, Non Commercial.
8 * https://registry.world.bibliotech.com/licence
9 * Source code donated to DataPond D-Library by it's author: data pond.
10 *
11 * Technical Guardian ("The Shield"): Pond Enterprise Pty Ltd. (ACN 694 747 987)
12 * All liability claims about D-SAFE certification issues coming from the published D-Safe direction must be addressed with Pond Enterprise Pty Ltd.
13 * Code Modification automatically voids the certified liability protection provided by Pond Enterprise.
14 */
15// Public API barrel — do NOT re-export internal writer functions.
16export {
17 InitDownloaderV2,
18 preloadWorkersV2,
19 GetPdf,
20 GetImage,
21 EnsurePageImage,
22 EnsurePdf,
23 DownloadPdfToDisk,
24 GetObjectUrl,
25 revokeObjectUrl,
26 storageEstimate,
27} from './client/files';
28
29export { getBookData } from './meta-db';
30
31export type { InitOptions } from './client/files';
32
33export {
34 downloadState,
35} from './state';
36
37export type {
38 FilePhase,
39 FileState,
40 RenderState,
41 PruningState,
42} from './state';
43
44export {
45 CACHE_VERSION,
46 CACHES,
47 DL2_SW_VERSION,
48 pdfKey,
49 previewKey,
50 pageKey,
51} from './keys';
52
53export type {
54 WorkerCommand,
55 WorkerMessage,
56 HydratePayload,
57 BookData,
58} from './worker-protocol';
59