summaryrefslogtreecommitdiff
path: root/lib/epub.js/types/archive.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/epub.js/types/archive.d.ts')
-rw-r--r--lib/epub.js/types/archive.d.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/epub.js/types/archive.d.ts b/lib/epub.js/types/archive.d.ts
new file mode 100644
index 0000000..c705aa4
--- /dev/null
+++ b/lib/epub.js/types/archive.d.ts
@@ -0,0 +1,27 @@
+import JSZip = require('jszip');
+
+export default class Archive {
+ constructor();
+
+ open(input: BinaryType, isBase64?: boolean): Promise<JSZip>;
+
+ openUrl(zipUrl: string, isBase64?: boolean): Promise<JSZip>;
+
+ request(url: string, type?: string): Promise<Blob | string | JSON | Document | XMLDocument>;
+
+ getBlob(url: string, mimeType?: string): Promise<Blob>;
+
+ getText(url: string): Promise<string>;
+
+ getBase64(url: string, mimeType?: string): Promise<string>;
+
+ createUrl(url: string, options: { base64: boolean }): Promise<string>;
+
+ revokeUrl(url: string): void;
+
+ destroy(): void;
+
+ private checkRequirements(): void;
+
+ private handleResponse(response: any, type?: string): Blob | string | JSON | Document | XMLDocument;
+}