-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
269 lines (269 loc) · 7.97 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
/**
* Escape Backslashes
*
* @description Escape backslashes from the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escapeBackslashes: (str: string) => string;
/**
* Escape Bells
*
* @description Escape bells from the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escapeBells: (str: string) => string;
/**
* Escape Carriages Returns
*
* @description Escape carriages returns from the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escapeCarriagesReturns: (str: string) => string;
/**
* Escape Form feeds
*
* @description Escape from feeds from the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escapeFormfeeds: (str: string) => string;
/**
* Escape Newlines
*
* @description Escape newlines from the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escapeNewlines: (str: string) => string;
/**
* Escape Pipes
*
* @description Escape pipes from the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escapePipes: (str: string) => string;
/**
* Escape Slashes
*
* @description Escape slashes from the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escapeSlashes: (str: string) => string;
/**
* Escape Tabulations
*
* @description Escape tabulations from the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escapeTabulations: (str: string) => string;
/**
* Escape Vertical Tabulations
*
* @description Escape vertical tabulations from the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escapeVerticalTabulations: (str: string) => string;
/**
* Escape Whitespaces
*
* @description Escape whitespaces from the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escapeWhitespaces: (str: string) => string;
/**
* Escape String
*
* @description Escape the string
* @since 1.0.0
* @param str {String} Text to escape
* @return {String} Escaped string
*/
declare let escape: (str: string) => string;
/**
* Unescape Backslashes
*
* @description Unescape backslashes from the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescapeBackslashes: (str: string) => string;
/**
* Unescape Bells
*
* @description Unescape bells from the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescapeBells: (str: string) => string;
/**
* Unescape Carriages Returns
*
* @description Unescape carriages returns from the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescapeCarriagesReturns: (str: string) => string;
/**
* Unescape Form feeds
*
* @description Unescape from feeds from the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescapeFormfeeds: (str: string) => string;
/**
* Unescape Newlines
*
* @description Unescape newlines from the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescapeNewlines: (str: string) => string;
/**
* Unescape Pipes
*
* @description Unescape pipes from the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescapePipes: (str: string) => string;
/**
* Unescape Slashes
*
* @description Unescape slashes from the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescapeSlashes: (str: string) => string;
/**
* Unescape Tabulations
*
* @description Unescape tabulations from the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescapeTabulations: (str: string) => string;
/**
* Unescape Vertical tabulations
*
* @description Unescape vertical tabulations from the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescapeVerticalTabulations: (str: string) => string;
/**
* Unescape Whitespaces
*
* @description Unescape whitespaces from the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescapeWhitespaces: (str: string) => string;
/**
* Unescape String
*
* @description Unescape the string
* @since 1.0.0
* @param str {String} Text to unescape
* @return String Unescaped string
*/
declare let unescape: (str: string) => string;
/**
* Build Query
*
* @description Build the query from parameters
* @since 1.1.0
* @param cmd {string} Command name
* @param params {object} Parameters
* @param flags {Array<string>}
* @return {string} Escaped query string
*/
declare let buildQuery: (cmd: string, params: object, flags: string[]) => string;
/**
* Parse response
*
* @description Parse the response
* @since 1.3.0
* @param str {String} Server query response
* @return Object Parsed response
*/
declare let parseResponse: (str: string) => object;
/**
* Get client builds by version
*
* @description return the client builds for the specified version/os
* @since 1.4.0
* @param version {string} Searched version
* @param os {string} Search through the OS versions
* @return {Array<number>} Builds found
*/
declare let getClientBuildByVersion: (version: string, os: string) => number[] | Error;
/**
* Get client versions by build
*
* @description return the client versions for the specified build/os
* @since 1.4.0
* @param build {number} Searched build
* @param os {string} Search through the OS versions
* @returns {Array<number>} Versions found
* @returns {Error} Error
*/
declare let getClientVersionByBuild: (build: number, os: string) => Error | (string | void)[];
export { buildQuery, parseResponse, getClientBuildByVersion, getClientVersionByBuild, escape, unescape, escapeBells, unescapeBells, escapeBackslashes, unescapeBackslashes, escapeCarriagesReturns, unescapeCarriagesReturns, escapeFormfeeds, unescapeFormfeeds, escapeNewlines, unescapeNewlines, escapePipes, unescapePipes, escapeSlashes, unescapeSlashes, escapeTabulations, unescapeTabulations, escapeVerticalTabulations, unescapeVerticalTabulations, escapeWhitespaces, unescapeWhitespaces };
declare const _default: {
buildQuery: (cmd: string, params: object, flags: string[]) => string;
parseResponse: (str: string) => object;
getClientBuildByVersion: (version: string, os: string) => number[] | Error;
getClientVersionByBuild: (build: number, os: string) => Error | (string | void)[];
escape: (str: string) => string;
unescape: (str: string) => string;
escapeBells: (str: string) => string;
unescapeBells: (str: string) => string;
escapeBackslashes: (str: string) => string;
unescapeBackslashes: (str: string) => string;
escapeCarriagesReturns: (str: string) => string;
unescapeCarriagesReturns: (str: string) => string;
escapeFormfeeds: (str: string) => string;
unescapeFormfeeds: (str: string) => string;
escapeNewlines: (str: string) => string;
unescapeNewlines: (str: string) => string;
escapePipes: (str: string) => string;
unescapePipes: (str: string) => string;
escapeSlashes: (str: string) => string;
unescapeSlashes: (str: string) => string;
escapeTabulations: (str: string) => string;
unescapeTabulations: (str: string) => string;
escapeVerticalTabulations: (str: string) => string;
unescapeVerticalTabulations: (str: string) => string;
escapeWhitespaces: (str: string) => string;
unescapeWhitespaces: (str: string) => string;
};
export default _default;