1 |
|
2 |
|
3 |
|
4 | import { InputType, CompressCallback, BrotliOptions, ZlibOptions } from "zlib";
|
5 | export * from "zlib";
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export function brotliCompress(buf: InputType, callback: CompressCallback): void;
|
14 | export function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
15 | export function brotliCompress(buf: InputType, options?: BrotliOptions): Promise<Buffer>;
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export function brotliDecompress(buf: InputType, callback: CompressCallback): void;
|
24 | export function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
25 | export function brotliDecompress(buf: InputType, options?: BrotliOptions): Promise<Buffer>;
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export function deflate(buf: InputType, callback: CompressCallback): void;
|
34 | export function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
35 | export function deflate(buf: InputType, options?: ZlibOptions): Promise<Buffer>;
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export function deflateRaw(buf: InputType, callback: CompressCallback): void;
|
44 | export function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
45 | export function deflateRaw(buf: InputType, options?: ZlibOptions): Promise<Buffer>;
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | export function gzip(buf: InputType, callback: CompressCallback): void;
|
54 | export function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
55 | export function gzip(buf: InputType, options?: ZlibOptions): Promise<Buffer>;
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | export function gunzip(buf: InputType, callback: CompressCallback): void;
|
64 | export function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
65 | export function gunzip(buf: InputType, options?: ZlibOptions): Promise<Buffer>;
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 | export function inflate(buf: InputType, callback: CompressCallback): void;
|
74 | export function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
75 | export function inflate(buf: InputType, options?: ZlibOptions): Promise<Buffer>;
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 | export function inflateRaw(buf: InputType, callback: CompressCallback): void;
|
84 | export function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
85 | export function inflateRaw(buf: InputType, options?: ZlibOptions): Promise<Buffer>;
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 | export function unzip(buf: InputType, callback: CompressCallback): void;
|
94 | export function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
95 | export function unzip(buf: InputType, options?: ZlibOptions): Promise<Buffer>;
|