-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.d.ts
More file actions
28 lines (25 loc) · 753 Bytes
/
index.d.ts
File metadata and controls
28 lines (25 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
declare namespace ZipNodeAddon {
/**
* unzip from buffer
* @param buf
* @param destDir
* @return json string for entries
*/
function unzipStream(buf: Buffer, destDir: string): Promise<String>;
/**
* unzip from zip file
* @param zipFile
* @param destDir
* @return json string for entries
*/
function unzipFile(zipFile: string, destDir: string): Promise<String>;
function listAllEntriesFromFile(zipFile: string): Promise<String>;
function listAllEntriesFromBuffer(buf: Buffer): Promise<String>;
/**
* zip files
* @param param0
*/
function zipBuffer({ [key]: Buffer }): Promise<Buffer>;
}
declare var ZipNodeAddon: ZipNodeAddon;
export = ZipNodeAddon;