-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.d.ts
148 lines (78 loc) · 2.83 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/** Declaration file generated by dts-gen */
import * as net from 'net';
declare interface mqtt_connection
{
connack(opts?: any, cb?: any): void;
connect(opts: String, cb?: any): void;
destroy(): void;
disconnect(opts?: any, cb?: any): void;
pingreq(opts?: any, cb?: any): void;
pingresp(opts?: any, cb?: any): void;
puback(opts?: any, cb?: any): void;
pubcomp(opts?: any, cb?: any): void;
publish(opts?: any, cb?: any): void;
pubrec(opts?: any, cb?: any): void;
pubrel(opts?: any, cb?: any): void;
suback(opts?: any, cb?: any): void;
subscribe(opts?: any, cb?: any): void;
unsuback(opts?: any, cb?: any): void;
unsubscribe(opts?: any, cb?: any): void;
destroyed: boolean;
domain: any;
stream : net.Socket;
addListener(ev: any, fn: any): any;
connack(opts?: any, cb?: any): void;
connect(opts?: any, cb?: any): void;
cork(): void;
destroy(): void;
disconnect(opts?: any, cb?: any): void;
emit(type: any, ...args: any[]): any;
end(data: any, enc: any, cb: any): any;
eventNames(): any;
getMaxListeners(): any;
isPaused(): any;
listenerCount(type: any): any;
listeners(type: any): any;
on(ev: any, fn: any): any;
once(type: any, listener: any): any;
pause(): any;
pingreq(opts?: any, cb?: any): void;
pingresp(opts?: any, cb?: any): void;
pipe(dest: any, pipeOpts: any): any;
prependListener(type: any, listener: any): any;
prependOnceListener(type: any, listener: any): any;
puback(opts?: any, cb?: any): void;
pubcomp(opts?: any, cb?: any): void;
publish(opts?: any, cb?: any): void;
pubrec(opts?: any, cb?: any): void;
pubrel(opts?: any, cb?: any): void;
push(chunk: any, encoding: any): any;
read(n: any): any;
removeAllListeners(type: any, ...args: any[]): any;
removeListener(type: any, listener: any): any;
resume(): any;
setDefaultEncoding(encoding: any): any;
setEncoding(enc: any): any;
setMaxListeners(n: any): any;
setReadable(readable: any): void;
setWritable(writable: any): void;
suback(opts?: any, cb?: any): void;
subscribe(opts?: any, cb?: any): void;
uncork(): void;
unpipe(dest: any): any;
unshift(chunk: any): any;
unsuback(opts?: any, cb?: any): void;
unsubscribe(opts?: any, cb?: any): void;
wrap(stream: any, ...args: any[]): any;
write(chunk: any, encoding: any, cb: any): any;
id : number;
}
declare interface mqtt_connection_constructor
{
generateStream(): any;
parseStream(): any;
(duplex: net.Socket, opts?: any):mqtt_connection;
}
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
declare const mqtt_connection: mqtt_connection_constructor;
export = mqtt_connection