Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@jimp/png/index.d.ts
1126 views
1
import { DecoderFn, EncoderFn, ImageCallback } from '@jimp/core';
2
3
interface PNGClass {
4
_deflateLevel: number,
5
_deflateStrategy: number,
6
_filterType: number,
7
_colorType: number,
8
deflateLevel(l: number, cb?: ImageCallback<this>): this;
9
deflateStrategy(s: number, cb?: ImageCallback<this>): this;
10
filterType(f: number, cb?: ImageCallback<this>): this;
11
colorType(s: number, cb?: ImageCallback<this>): this;
12
}
13
14
interface PNG {
15
16
mime: { 'image/png': string[] },
17
18
hasAlpha: { 'image/png': true },
19
20
decoders: {
21
'image/png': DecoderFn
22
}
23
encoders: {
24
'image/png': EncoderFn
25
}
26
27
class: PNGClass
28
29
constants: {
30
MIME_PNG: 'image/png';
31
// PNG filter types
32
PNG_FILTER_AUTO: -1;
33
PNG_FILTER_NONE: 0;
34
PNG_FILTER_SUB: 1;
35
PNG_FILTER_UP: 2;
36
PNG_FILTER_AVERAGE: 3;
37
PNG_FILTER_PATH: 4;
38
}
39
}
40
41
export default function(): PNG;
42
43