1 | /**
|
2 | * A syntetic file creator.
|
3 | * Very useful for tests
|
4 | */
|
5 | export declare abstract class SyntheticFile {
|
6 | /**
|
7 | *
|
8 | * @param name the file name
|
9 | * @param size the file size
|
10 | * @param type the file type
|
11 | * @returns
|
12 | */
|
13 | static createFile: (name: string, size: number, type: string) => File;
|
14 | /**
|
15 | *
|
16 | * @param size the file size
|
17 | * @returns a syntetic File object instance
|
18 | */
|
19 | static create_aac: (size?: number) => File;
|
20 | /**
|
21 | *
|
22 | * @param size the file size
|
23 | * @returns a syntetic File object instance
|
24 | */
|
25 | static create_abw: (size?: number) => File;
|
26 | /**
|
27 | *
|
28 | * @param size the file size
|
29 | * @returns a syntetic File object instance
|
30 | */
|
31 | static create_freearc: (size?: number) => File;
|
32 | /**
|
33 | *
|
34 | * @param size the file size
|
35 | * @returns a syntetic File object instance
|
36 | */
|
37 | static create_avi: (size?: number) => File;
|
38 | /**
|
39 | *
|
40 | * @param size the file size
|
41 | * @returns a syntetic File object instance
|
42 | */
|
43 | static create_azw: (size?: number) => File;
|
44 | /**
|
45 | *
|
46 | * @param size the file size
|
47 | * @returns a syntetic File object instance
|
48 | */
|
49 | static create_octet: (size?: number) => File;
|
50 | /**
|
51 | *
|
52 | * @param size the file size
|
53 | * @returns a syntetic File object instance
|
54 | */
|
55 | static create_bmp: (size?: number) => File;
|
56 | /**
|
57 | *
|
58 | * @param size the file size
|
59 | * @returns a syntetic File object instance
|
60 | */
|
61 | static create_bz: (size?: number) => File;
|
62 | /**
|
63 | *
|
64 | * @param size the file size
|
65 | * @returns a syntetic File object instance
|
66 | */
|
67 | static create_bz2: (size?: number) => File;
|
68 | /**
|
69 | *
|
70 | * @param size the file size
|
71 | * @returns a syntetic File object instance
|
72 | */
|
73 | static create_cda: (size?: number) => File;
|
74 | /**
|
75 | *
|
76 | * @param size the file size
|
77 | * @returns a syntetic File object instance
|
78 | */
|
79 | static create_csh: (size?: number) => File;
|
80 | /**
|
81 | *
|
82 | * @param size the file size
|
83 | * @returns a syntetic File object instance
|
84 | */
|
85 | static create_css: (size?: number) => File;
|
86 | /**
|
87 | *
|
88 | * @param size the file size
|
89 | * @returns a syntetic File object instance
|
90 | */
|
91 | static create_csv: (size?: number) => File;
|
92 | /**
|
93 | *
|
94 | * @param size the file size
|
95 | * @returns a syntetic File object instance
|
96 | */
|
97 | static create_doc: (size?: number) => File;
|
98 | /**
|
99 | *
|
100 | * @param size the file size
|
101 | * @returns a syntetic File object instance
|
102 | */
|
103 | static create_docx: (size?: number) => File;
|
104 | /**
|
105 | *
|
106 | * @param size the file size
|
107 | * @returns a syntetic File object instance
|
108 | */
|
109 | static create_eot: (size?: number) => File;
|
110 | /**
|
111 | *
|
112 | * @param size the file size
|
113 | * @returns a syntetic File object instance
|
114 | */
|
115 | static create_epub: (size?: number) => File;
|
116 | /**
|
117 | *
|
118 | * @param size the file size
|
119 | * @returns a syntetic File object instance
|
120 | */
|
121 | static create_gzip: (size?: number) => File;
|
122 | /**
|
123 | *
|
124 | * @param size the file size
|
125 | * @returns a syntetic File object instance
|
126 | */
|
127 | static create_gif: (size?: number) => File;
|
128 | /**
|
129 | *
|
130 | * @param size the file size
|
131 | * @returns a syntetic File object instance
|
132 | */
|
133 | static create_htm: (size?: number) => File;
|
134 | /**
|
135 | *
|
136 | * @param size the file size
|
137 | * @returns a syntetic File object instance
|
138 | */
|
139 | static create_html: (size?: number) => File;
|
140 | /**
|
141 | *
|
142 | * @param size the file size
|
143 | * @returns a syntetic File object instance
|
144 | */
|
145 | static create_ico: (size?: number) => File;
|
146 | /**
|
147 | *
|
148 | * @param size the file size
|
149 | * @returns a syntetic File object instance
|
150 | */
|
151 | static create_icalendar: (size?: number) => File;
|
152 | /**
|
153 | *
|
154 | * @param size the file size
|
155 | * @returns a syntetic File object instance
|
156 | */
|
157 | static create_jar: (size?: number) => File;
|
158 | /**
|
159 | *
|
160 | * @param size the file size
|
161 | * @returns a syntetic File object instance
|
162 | */
|
163 | static create_jpeg: (size?: number) => File;
|
164 | /**
|
165 | *
|
166 | * @param size the file size
|
167 | * @returns a syntetic File object instance
|
168 | */
|
169 | static create_jpg: (size?: number) => File;
|
170 | /**
|
171 | *
|
172 | * @param size the file size
|
173 | * @returns a syntetic File object instance
|
174 | */
|
175 | static create_js: (size?: number) => File;
|
176 | /**
|
177 | *
|
178 | * @param size the file size
|
179 | * @returns a syntetic File object instance
|
180 | */
|
181 | static create_json: (size?: number) => File;
|
182 | /**
|
183 | *
|
184 | * @param size the file size
|
185 | * @returns a syntetic File object instance
|
186 | */
|
187 | static create_jsonld: (size?: number) => File;
|
188 | /**
|
189 | *
|
190 | * @param size the file size
|
191 | * @returns a syntetic File object instance
|
192 | */
|
193 | static create_mid: (size?: number) => File;
|
194 | /**
|
195 | *
|
196 | * @param size the file size
|
197 | * @returns a syntetic File object instance
|
198 | */
|
199 | static create_x_mid: (size?: number) => File;
|
200 | /**
|
201 | *
|
202 | * @param size the file size
|
203 | * @returns a syntetic File object instance
|
204 | */
|
205 | static create_midi: (size?: number) => File;
|
206 | /**
|
207 | *
|
208 | * @param size the file size
|
209 | * @returns a syntetic File object instance
|
210 | */
|
211 | static create_x_midi: (size?: number) => File;
|
212 | /**
|
213 | *
|
214 | * @param size the file size
|
215 | * @returns a syntetic File object instance
|
216 | */
|
217 | static create_mjs: (size?: number) => File;
|
218 | /**
|
219 | *
|
220 | * @param size the file size
|
221 | * @returns a syntetic File object instance
|
222 | */
|
223 | static create_mp3: (size?: number) => File;
|
224 | /**
|
225 | *
|
226 | * @param size the file size
|
227 | * @returns a syntetic File object instance
|
228 | */
|
229 | static create_mp4: (size?: number) => File;
|
230 | /**
|
231 | *
|
232 | * @param size the file size
|
233 | * @returns a syntetic File object instance
|
234 | */
|
235 | static create_mpeg: (size?: number) => File;
|
236 | /**
|
237 | *
|
238 | * @param size the file size
|
239 | * @returns a syntetic File object instance
|
240 | */
|
241 | static create_mpkg: (size?: number) => File;
|
242 | /**
|
243 | *
|
244 | * @param size the file size
|
245 | * @returns a syntetic File object instance
|
246 | */
|
247 | static create_odp: (size?: number) => File;
|
248 | /**
|
249 | *
|
250 | * @param size the file size
|
251 | * @returns a syntetic File object instance
|
252 | */
|
253 | static create_ods: (size?: number) => File;
|
254 | /**
|
255 | *
|
256 | * @param size the file size
|
257 | * @returns a syntetic File object instance
|
258 | */
|
259 | static create_odt: (size?: number) => File;
|
260 | /**
|
261 | *
|
262 | * @param size the file size
|
263 | * @returns a syntetic File object instance
|
264 | */
|
265 | static create_oga: (size?: number) => File;
|
266 | /**
|
267 | *
|
268 | * @param size the file size
|
269 | * @returns a syntetic File object instance
|
270 | */
|
271 | static create_ogv: (size?: number) => File;
|
272 | /**
|
273 | *
|
274 | * @param size the file size
|
275 | * @returns a syntetic File object instance
|
276 | */
|
277 | static create_ogx: (size?: number) => File;
|
278 | /**
|
279 | *
|
280 | * @param size the file size
|
281 | * @returns a syntetic File object instance
|
282 | */
|
283 | static create_opus: (size?: number) => File;
|
284 | /**
|
285 | *
|
286 | * @param size the file size
|
287 | * @returns a syntetic File object instance
|
288 | */
|
289 | static create_otf: (size?: number) => File;
|
290 | /**
|
291 | *
|
292 | * @param size the file size
|
293 | * @returns a syntetic File object instance
|
294 | */
|
295 | static create_png: (size?: number) => File;
|
296 | /**
|
297 | *
|
298 | * @param size the file size
|
299 | * @returns a syntetic File object instance
|
300 | */
|
301 | static create_pdf: (size?: number) => File;
|
302 | /**
|
303 | *
|
304 | * @param size the file size
|
305 | * @returns a syntetic File object instance
|
306 | */
|
307 | static create_php: (size?: number) => File;
|
308 | /**
|
309 | *
|
310 | * @param size the file size
|
311 | * @returns a syntetic File object instance
|
312 | */
|
313 | static create_ppt: (size?: number) => File;
|
314 | /**
|
315 | *
|
316 | * @param size the file size
|
317 | * @returns a syntetic File object instance
|
318 | */
|
319 | static create_pptx: (size?: number) => File;
|
320 | /**
|
321 | *
|
322 | * @param size the file size
|
323 | * @returns a syntetic File object instance
|
324 | */
|
325 | static create_rar: (size?: number) => File;
|
326 | /**
|
327 | *
|
328 | * @param size the file size
|
329 | * @returns a syntetic File object instance
|
330 | */
|
331 | static create_rtf: (size?: number) => File;
|
332 | /**
|
333 | *
|
334 | * @param size the file size
|
335 | * @returns a syntetic File object instance
|
336 | */
|
337 | static create_sh: (size?: number) => File;
|
338 | /**
|
339 | *
|
340 | * @param size the file size
|
341 | * @returns a syntetic File object instance
|
342 | */
|
343 | static create_svg: (size?: number) => File;
|
344 | /**
|
345 | *
|
346 | * @param size the file size
|
347 | * @returns a syntetic File object instance
|
348 | */
|
349 | static create_swf: (size?: number) => File;
|
350 | /**
|
351 | *
|
352 | * @param size the file size
|
353 | * @returns a syntetic File object instance
|
354 | */
|
355 | static create_tar: (size?: number) => File;
|
356 | /**
|
357 | *
|
358 | * @param size the file size
|
359 | * @returns a syntetic File object instance
|
360 | */
|
361 | static create_tif: (size?: number) => File;
|
362 | /**
|
363 | *
|
364 | * @param size the file size
|
365 | * @returns a syntetic File object instance
|
366 | */
|
367 | static create_tiff: (size?: number) => File;
|
368 | /**
|
369 | *
|
370 | * @param size the file size
|
371 | * @returns a syntetic File object instance
|
372 | */
|
373 | static create_ts: (size?: number) => File;
|
374 | /**
|
375 | *
|
376 | * @param size the file size
|
377 | * @returns a syntetic File object instance
|
378 | */
|
379 | static create_ttf: (size?: number) => File;
|
380 | /**
|
381 | *
|
382 | * @param size the file size
|
383 | * @returns a syntetic File object instance
|
384 | */
|
385 | static create_text: (size?: number) => File;
|
386 | /**
|
387 | *
|
388 | * @param size the file size
|
389 | * @returns a syntetic File object instance
|
390 | */
|
391 | static create_typescript: (size?: number) => File;
|
392 | /**
|
393 | *
|
394 | * @param size the file size
|
395 | * @returns a syntetic File object instance
|
396 | */
|
397 | static create_vsd: (size?: number) => File;
|
398 | /**
|
399 | *
|
400 | * @param size the file size
|
401 | * @returns a syntetic File object instance
|
402 | */
|
403 | static create_wav: (size?: number) => File;
|
404 | /**
|
405 | *
|
406 | * @param size the file size
|
407 | * @returns a syntetic File object instance
|
408 | */
|
409 | static create_weba: (size?: number) => File;
|
410 | /**
|
411 | *
|
412 | * @param size the file size
|
413 | * @returns a syntetic File object instance
|
414 | */
|
415 | static create_webm: (size?: number) => File;
|
416 | /**
|
417 | *
|
418 | * @param size the file size
|
419 | * @returns a syntetic File object instance
|
420 | */
|
421 | static create_webp: (size?: number) => File;
|
422 | /**
|
423 | *
|
424 | * @param size the file size
|
425 | * @returns a syntetic File object instance
|
426 | */
|
427 | static create_woff: (size?: number) => File;
|
428 | /**
|
429 | *
|
430 | * @param size the file size
|
431 | * @returns a syntetic File object instance
|
432 | */
|
433 | static create_woff2: (size?: number) => File;
|
434 | /**
|
435 | *
|
436 | * @param size the file size
|
437 | * @returns a syntetic File object instance
|
438 | */
|
439 | static create_xhtml: (size?: number) => File;
|
440 | /**
|
441 | *
|
442 | * @param size the file size
|
443 | * @returns a syntetic File object instance
|
444 | */
|
445 | static create_xlsx: (size?: number) => File;
|
446 | /**
|
447 | *
|
448 | * @param size the file size
|
449 | * @returns a syntetic File object instance
|
450 | */
|
451 | static create_xls: (size?: number) => File;
|
452 | /**
|
453 | *
|
454 | * @param size the file size
|
455 | * @returns a syntetic File object instance
|
456 | */
|
457 | static create_xml: (size?: number) => File;
|
458 | /**
|
459 | *
|
460 | * @param size the file size
|
461 | * @returns a syntetic File object instance
|
462 | */
|
463 | static create_xml_txt: (size?: number) => File;
|
464 | /**
|
465 | *
|
466 | * @param size the file size
|
467 | * @returns a syntetic File object instance
|
468 | */
|
469 | static create_xul: (size?: number) => File;
|
470 | /**
|
471 | *
|
472 | * @param size the file size
|
473 | * @returns a syntetic File object instance
|
474 | */
|
475 | static create_zip: (size?: number) => File;
|
476 | /**
|
477 | *
|
478 | * @param size the file size
|
479 | * @returns a syntetic File object instance
|
480 | */
|
481 | static create_3gp: (size?: number) => File;
|
482 | /**
|
483 | *
|
484 | * @param size the file size
|
485 | * @returns a syntetic File object instance
|
486 | */
|
487 | static create_3gp2: (size?: number) => File;
|
488 | /**
|
489 | *
|
490 | * @param size the file size
|
491 | * @returns a syntetic File object instance
|
492 | */
|
493 | static create_3gp_a: (size?: number) => File;
|
494 | /**
|
495 | *
|
496 | * @param size the file size
|
497 | * @returns a syntetic File object instance
|
498 | */
|
499 | static create_3gp_v: (size?: number) => File;
|
500 | /**
|
501 | *
|
502 | * @param size the file size
|
503 | * @returns a syntetic File object instance
|
504 | */
|
505 | static create_7z: (size?: number) => File;
|
506 | /**
|
507 | *
|
508 | * @param size the file size
|
509 | * @returns a syntetic File object instance
|
510 | */
|
511 | static create_python: (size?: number) => File;
|
512 | /**
|
513 | *
|
514 | * @param size the file size
|
515 | * @returns a syntetic File object instance
|
516 | */
|
517 | static create_java: (size?: number) => File;
|
518 | /**
|
519 | *
|
520 | * @param size the file size
|
521 | * @returns a syntetic File object instance
|
522 | */
|
523 | static create_react: (size?: number) => File;
|
524 | /**
|
525 | *
|
526 | * @param size the file size
|
527 | * @returns a syntetic File object instance
|
528 | */
|
529 | static create_vue: (size?: number) => File;
|
530 | /**
|
531 | * Creates an array of fake (synthetic) files
|
532 | * @param size the file size for all synthetic files
|
533 | * @returns an array of all file icon preview supported files
|
534 | */
|
535 | static createFileListMiscelanious: (size?: number) => File[];
|
536 | }
|