-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.d.ts
51 lines (48 loc) · 1.67 KB
/
index.d.ts
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
declare module 'zlib-sync' {
export interface InflateOptions {
chunkSize?: number;
to?: 'string';
windowBits?: number;
}
export class Inflate {
readonly windowBits: number;
readonly result: Buffer | string | null;
readonly msg: string | null;
readonly err: number;
readonly chunkSize: number;
public constructor(options?: InflateOptions);
public push(buffer: Buffer, flush?: boolean | number): void;
}
export const Z_NO_FLUSH: number;
export const Z_PARTIAL_FLUSH: number;
export const Z_SYNC_FLUSH: number;
export const Z_FULL_FLUSH: number;
export const Z_FINISH: number;
export const Z_BLOCK: number;
export const Z_TREES: number;
export const Z_OK: number;
export const Z_STREAM_END: number;
export const Z_NEED_DICT: number;
export const Z_ERRNO: number;
export const Z_STREAM_ERROR: number;
export const Z_DATA_ERROR: number;
export const Z_MEM_ERROR: number;
export const Z_BUF_ERROR: number;
export const Z_VERSION_ERROR: number;
export const Z_NO_COMPRESSION: number;
export const Z_BEST_SPEED: number;
export const Z_BEST_COMPRESSION: number;
export const Z_DEFAULT_COMPRESSION: number;
export const Z_FILTERED: number;
export const Z_HUFFMAN_ONLY: number;
export const Z_RLE: number;
export const Z_FIXED: number;
export const Z_DEFAULT_STRATEGY: number;
export const Z_BINARY: number;
export const Z_TEXT: number;
export const Z_ASCII: number;
export const Z_UNKNOWN: number;
export const Z_DEFLATED: number;
export const Z_NULL: number;
export const ZLIB_VERSION: string;
}