@nextage/nx-frame-be 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/README.md +1 -0
  2. package/README.md.old +45 -0
  3. package/build/app.d.ts +0 -0
  4. package/build/app.js +1 -0
  5. package/build/aws/aws-cluster-manager.d.ts +28 -0
  6. package/build/aws/aws-cluster-manager.js +105 -0
  7. package/build/aws/aws-email-manager.d.ts +24 -0
  8. package/build/aws/aws-email-manager.js +57 -0
  9. package/build/aws/aws-queue-manager.d.ts +37 -0
  10. package/build/aws/aws-queue-manager.js +100 -0
  11. package/build/aws/aws.interfaces.d.ts +39 -0
  12. package/build/aws/aws.interfaces.js +2 -0
  13. package/build/aws/index.d.ts +4 -0
  14. package/build/aws/index.js +20 -0
  15. package/build/common/base/__test__/base.model.test.d.ts +1 -0
  16. package/build/common/base/__test__/base.model.test.js +283 -0
  17. package/build/common/base/base.controller.d.ts +124 -0
  18. package/build/common/base/base.controller.js +134 -0
  19. package/build/common/base/base.interfaces.d.ts +81 -0
  20. package/build/common/base/base.interfaces.js +2 -0
  21. package/build/common/base/base.model.d.ts +384 -0
  22. package/build/common/base/base.model.js +730 -0
  23. package/build/common/base/folded.model.d.ts +41 -0
  24. package/build/common/base/folded.model.js +215 -0
  25. package/build/common/base/mongo-utils.d.ts +122 -0
  26. package/build/common/base/mongo-utils.js +242 -0
  27. package/build/common/base/mongo.types.d.ts +20 -0
  28. package/build/common/base/mongo.types.js +2 -0
  29. package/build/common/base/sql-utils.d.ts +20 -0
  30. package/build/common/base/sql-utils.js +69 -0
  31. package/build/common/constants.d.ts +27 -0
  32. package/build/common/constants.js +70 -0
  33. package/build/common/crypto/crypto.classes.d.ts +100 -0
  34. package/build/common/crypto/crypto.classes.js +146 -0
  35. package/build/common/crypto/crypto.constants.d.ts +68 -0
  36. package/build/common/crypto/crypto.constants.js +57 -0
  37. package/build/common/crypto/crypto.error.d.ts +4 -0
  38. package/build/common/crypto/crypto.error.js +10 -0
  39. package/build/common/crypto/crypto.interfaces.d.ts +46 -0
  40. package/build/common/crypto/crypto.interfaces.js +2 -0
  41. package/build/common/crypto/crypto.utils.d.ts +139 -0
  42. package/build/common/crypto/crypto.utils.js +380 -0
  43. package/build/common/crypto/index.d.ts +3 -0
  44. package/build/common/crypto/index.js +19 -0
  45. package/build/common/enums.d.ts +61 -0
  46. package/build/common/enums.js +75 -0
  47. package/build/common/errors.d.ts +13 -0
  48. package/build/common/errors.js +24 -0
  49. package/build/common/express/express.interfaces.d.ts +20 -0
  50. package/build/common/express/express.interfaces.js +2 -0
  51. package/build/common/express/express.utils.d.ts +31 -0
  52. package/build/common/express/express.utils.js +85 -0
  53. package/build/common/express/index.d.ts +2 -0
  54. package/build/common/express/index.js +18 -0
  55. package/build/common/graphql/__test__/generator.schema.test.d.ts +1 -0
  56. package/build/common/graphql/__test__/generator.schema.test.js +391 -0
  57. package/build/common/graphql/directives.d.ts +18 -0
  58. package/build/common/graphql/directives.js +56 -0
  59. package/build/common/graphql/generator copy.d.ts +41 -0
  60. package/build/common/graphql/generator copy.js +385 -0
  61. package/build/common/graphql/generator.d.ts +42 -0
  62. package/build/common/graphql/generator.js +385 -0
  63. package/build/common/graphql/index.d.ts +4 -0
  64. package/build/common/graphql/index.js +21 -0
  65. package/build/common/graphql/interfaces.d.ts +67 -0
  66. package/build/common/graphql/interfaces.js +2 -0
  67. package/build/common/graphql/loader.d.ts +22 -0
  68. package/build/common/graphql/loader.js +186 -0
  69. package/build/common/graphql/scalars/index.d.ts +10 -0
  70. package/build/common/graphql/scalars/index.js +6 -0
  71. package/build/common/graphql/scalars/resolvers.d.ts +8 -0
  72. package/build/common/graphql/scalars/resolvers.js +71 -0
  73. package/build/common/graphql/scalars/schema.d.ts +1 -0
  74. package/build/common/graphql/scalars/schema.js +12 -0
  75. package/build/common/graphql/types/index.d.ts +3 -0
  76. package/build/common/graphql/types/index.js +6 -0
  77. package/build/common/graphql/types/schema.d.ts +1 -0
  78. package/build/common/graphql/types/schema.js +98 -0
  79. package/build/common/graphql/utils.d.ts +18 -0
  80. package/build/common/graphql/utils.js +40 -0
  81. package/build/common/grid-fs/gridfs-base.model.d.ts +53 -0
  82. package/build/common/grid-fs/gridfs-base.model.js +95 -0
  83. package/build/common/grid-fs/gridfs.interfaces.d.ts +41 -0
  84. package/build/common/grid-fs/gridfs.interfaces.js +2 -0
  85. package/build/common/index.d.ts +10 -0
  86. package/build/common/index.js +32 -0
  87. package/build/common/interfaces.d.ts +26 -0
  88. package/build/common/interfaces.js +10 -0
  89. package/build/common/manager/bulk-manager.d.ts +59 -0
  90. package/build/common/manager/bulk-manager.js +103 -0
  91. package/build/common/manager/crypto-manager.d.ts +88 -0
  92. package/build/common/manager/crypto-manager.js +200 -0
  93. package/build/common/manager/index.d.ts +5 -0
  94. package/build/common/manager/index.js +21 -0
  95. package/build/common/manager/pubsub-manager.d.ts +20 -0
  96. package/build/common/manager/pubsub-manager.js +38 -0
  97. package/build/common/manager/shutdown-manager.d.ts +27 -0
  98. package/build/common/manager/shutdown-manager.js +118 -0
  99. package/build/common/manager/socket-io-cli-manager.d.ts +53 -0
  100. package/build/common/manager/socket-io-cli-manager.js +91 -0
  101. package/build/common/manager/tunnel-manager.d.ts +28 -0
  102. package/build/common/manager/tunnel-manager.js +49 -0
  103. package/build/common/models/coded-entity.controller.d.ts +5 -0
  104. package/build/common/models/coded-entity.controller.js +9 -0
  105. package/build/common/models/coded-entity.model.d.ts +25 -0
  106. package/build/common/models/coded-entity.model.js +51 -0
  107. package/build/common/models/user.model.d.ts +56 -0
  108. package/build/common/models/user.model.js +72 -0
  109. package/build/common/types.d.ts +136 -0
  110. package/build/common/types.js +16 -0
  111. package/build/common/utils.d.ts +552 -0
  112. package/build/common/utils.js +1100 -0
  113. package/build/index.d.ts +2 -0
  114. package/build/index.js +18 -0
  115. package/build/test/env.d.ts +0 -0
  116. package/build/test/env.js +5 -0
  117. package/build/test/setup.d.ts +6 -0
  118. package/build/test/setup.js +59 -0
  119. package/package.json +90 -0
@@ -0,0 +1,552 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import { ClassElement } from 'typescript';
4
+ import moment, { Moment } from 'moment';
5
+ import JSZip from 'jszip';
6
+ import schedule from 'node-schedule';
7
+ import jwt from 'jsonwebtoken';
8
+ import UAParser from 'ua-parser-js';
9
+ import { DatePeriod } from './enums';
10
+ import { NxObject, BaseUser, NxContext } from './interfaces';
11
+ export declare function devMode(): boolean;
12
+ export declare function prodMode(): boolean;
13
+ /**
14
+ *
15
+ * @param {*} jti
16
+ */
17
+ export declare function generateJwt(sub: string, jti: string, iss: string, signOpts?: jwt.SignOptions, secret?: jwt.Secret): string;
18
+ /**
19
+ *
20
+ * @param {*} token
21
+ */
22
+ export declare function validateJwt(token: string, options?: jwt.VerifyOptions, secret?: jwt.Secret): string | jwt.Jwt | jwt.JwtPayload;
23
+ /**
24
+ *
25
+ * @param {*} size
26
+ */
27
+ export declare function randomString(size?: number): string;
28
+ /**
29
+ *
30
+ * @param {*} a
31
+ * @param {*} b
32
+ * @param {*} key
33
+ */
34
+ export declare function baseComparator(a: string, b: string, key: string): number;
35
+ /**
36
+ *
37
+ * @param {*} a
38
+ * @param {*} b
39
+ * @param {*} key
40
+ */
41
+ export declare function baseComparatorReverse(a: string, b: string, key: string): number;
42
+ /**
43
+ * Returns if a value is an object
44
+ *
45
+ * @param {*} value
46
+ */
47
+ export declare function isObject(value: any): boolean;
48
+ /**
49
+ * Returns if a value is a function
50
+ *
51
+ * @param {*} value
52
+ */
53
+ export declare function isFunction(value: any): boolean;
54
+ /**
55
+ * Returns if a value is a date
56
+ *
57
+ * @param {*} value
58
+ */
59
+ export declare function isDate(value: any): boolean;
60
+ /**
61
+ * Returns if a value is a boolean
62
+ *
63
+ * @param {*} value
64
+ */
65
+ export declare function isBoolean(value: any): boolean;
66
+ /**
67
+ * Returns if a value is a string
68
+ *
69
+ * @param {*} value
70
+ */
71
+ export declare function isString(value: any): boolean;
72
+ /**
73
+ * Returns if a value is a number
74
+ *
75
+ * @param value
76
+ */
77
+ export declare function isNumber(value: any): boolean;
78
+ /**
79
+ * Returns if a value is not null and not undefined
80
+ *
81
+ * @param {*} value
82
+ */
83
+ export declare function isNotNull(value: any): boolean;
84
+ /**
85
+ *
86
+ * @param value
87
+ * @returns
88
+ */
89
+ export declare function isNil(value: any): boolean;
90
+ /**
91
+ * Returns if a value is null or undefined
92
+ *
93
+ * @param {*} value
94
+ */
95
+ export declare function isUndefined(value: any): boolean;
96
+ /**
97
+ * Returns if a value is defined
98
+ *
99
+ * @param {*} value
100
+ */
101
+ export declare function isDefined(value: any): boolean;
102
+ /**
103
+ *
104
+ * @param {*} v
105
+ * @param {*} opts
106
+ * @returns
107
+ */
108
+ export declare function isBase64(value: any, opts?: {
109
+ allowEmpty?: boolean;
110
+ allowMime?: boolean;
111
+ mimeRequired?: boolean;
112
+ paddingRequired?: boolean;
113
+ }): boolean;
114
+ /**
115
+ * Returns if value is a valid email
116
+ *
117
+ * @param {*} value
118
+ * @returns
119
+ */
120
+ export declare function isEmail(value: any): boolean;
121
+ /**
122
+ * Returns true if array contains value
123
+ *
124
+ * @param {*} value
125
+ */
126
+ export declare function contains(arr: any[], value: any): boolean;
127
+ /**
128
+ * Returns true if array contains value
129
+ *
130
+ * @param {*} value
131
+ */
132
+ export declare function containsArrayValue(arr: any[], value: any): boolean;
133
+ /**
134
+ * Returns true if empty object or array
135
+ *
136
+ * @param {*} item
137
+ */
138
+ export declare function isEmpty(item: any): boolean;
139
+ /**
140
+ * Returns true if obj is not empty
141
+ *
142
+ * @param {*} value
143
+ */
144
+ export declare function hasKeys(obj: NxObject): boolean;
145
+ /**
146
+ *
147
+ * @param {*} key
148
+ * @param {*} arrays
149
+ */
150
+ export declare function mergeArraysByKey(key: string, arrays: any[][]): any[];
151
+ /**
152
+ *
153
+ * @param data
154
+ * @param obj
155
+ */
156
+ export declare function findDeep(data: any[], attr: string, obj: NxObject): any;
157
+ /**
158
+ * Percentage Difference between two numbers
159
+ *
160
+ * @param {int} base First and original number
161
+ * @param {int} peak Second new number to differentiate
162
+ * @param {boolean} round Round return value to nearest whole numer?
163
+ * @return {int} Percentage difference between lowest and highest number
164
+ */
165
+ export declare function percentDiff(base: number, peak: number, round?: boolean): number;
166
+ /**
167
+ *
168
+ * @param {*} obj
169
+ */
170
+ export declare function dottedKeys(obj: NxObject): string[];
171
+ /**
172
+ *
173
+ * @param {*} obj
174
+ */
175
+ export declare function dotObj(obj: NxObject): NxObject;
176
+ /**
177
+ * json string parsed to object with regex values management
178
+ *
179
+ * @param {*} objStr
180
+ */
181
+ export declare function strToJson(str: string): NxObject;
182
+ /**
183
+ * json object parsed to string with regex values management
184
+ *
185
+ * @param {*} obj
186
+ */
187
+ export declare function jsonToStr(obj: NxObject): string;
188
+ /**
189
+ * Capitalize first char of string
190
+ * @param text
191
+ */
192
+ export declare function capitalize(text: string): string;
193
+ /**
194
+ * Parse string value type coded
195
+ */
196
+ export declare function parseTypedString(value: string): any;
197
+ /**
198
+ *
199
+ * @param {*} period
200
+ * @param {*} year
201
+ */
202
+ export declare function toFilterDatePeriod(period: DatePeriod, year: number): {
203
+ $gte: Date | moment.Moment;
204
+ $lt: Date | moment.Moment;
205
+ } | {
206
+ $gte?: undefined;
207
+ $lt?: undefined;
208
+ };
209
+ /**
210
+ * Returns if string is valid date
211
+ *
212
+ * @param {*} value
213
+ */
214
+ export declare function isValidDateStr(value: string, format?: string): boolean;
215
+ /**
216
+ *
217
+ * @param {*} value
218
+ */
219
+ export declare function toDate(value: string | Date, format?: string): Date | Date[];
220
+ /**
221
+ *
222
+ * @param {*} value
223
+ * @param {*} format
224
+ */
225
+ export declare function toMoment(value: string | Date | Moment, format?: string, utc?: boolean): Moment;
226
+ /**
227
+ *
228
+ * @param {*} value
229
+ * @param {*} format
230
+ */
231
+ export declare function dateFormat(value: Date, format: string): string;
232
+ /**
233
+ *
234
+ * @param {*} d1
235
+ * @param {*} d2
236
+ * @param {*} period
237
+ */
238
+ export declare function getDateDiff(d1: Date, d2: Date, period?: moment.unitOfTime.Diff): number;
239
+ /**
240
+ *
241
+ * @param {*} date
242
+ * @param {*} utc
243
+ */
244
+ export declare function getDateValues(date: Date | Moment, utc?: boolean): {
245
+ day?: number;
246
+ month?: number;
247
+ year?: number;
248
+ };
249
+ /**
250
+ *
251
+ * @param {*} date
252
+ * @param {*} utc
253
+ */
254
+ export declare function getTimeValues(date: Date | Moment, utc?: boolean): {
255
+ hour?: number;
256
+ minute?: number;
257
+ seconds?: number;
258
+ };
259
+ /**
260
+ *
261
+ * @param {*} period
262
+ * @param {*} year
263
+ * @param {*} momentValue
264
+ */
265
+ export declare function getDatePeriod(period: DatePeriod, year: number, momentValue?: boolean): Moment[] | Date[];
266
+ /**
267
+ *
268
+ * @param {*} value value to be checked
269
+ */
270
+ export declare function uuid(value?: string): string;
271
+ /**
272
+ *
273
+ * @param {*} obj
274
+ */
275
+ export declare function logClassCtx(obj: any, method?: string): {
276
+ context?: string;
277
+ method?: string;
278
+ };
279
+ /**
280
+ *
281
+ * @param obj
282
+ * @param logger
283
+ */
284
+ export declare function logMemory(obj: ClassElement, logger?: any): void;
285
+ /**
286
+ *
287
+ * @param logger
288
+ */
289
+ export declare function forceGC(logger?: any): void;
290
+ /**
291
+ *
292
+ * @param {*} ctx
293
+ */
294
+ export declare function getCtxUser(ctx: NxContext): BaseUser | null;
295
+ /**
296
+ *
297
+ */
298
+ export declare function flattenArray(arr: any[], parseMethod: Function): any[];
299
+ /**
300
+ *
301
+ * @param {*} obj
302
+ * @param {*} path
303
+ * @param {*} cloneKey
304
+ */
305
+ export declare function deleteKey(obj: any, path: string, cloneKey: boolean): any;
306
+ /**
307
+ *
308
+ * @param array
309
+ * @param properties
310
+ */
311
+ export declare function sortBy(array: any[], properties: string | string[]): any[];
312
+ /**
313
+ *
314
+ * @param {*} path
315
+ * @returns
316
+ */
317
+ export declare function readFileSync(path: string): string;
318
+ /**
319
+ *
320
+ * @param {*} arr1
321
+ * @param {*} arr2
322
+ * @returns
323
+ */
324
+ export declare function union(arr1: any[], arr2: any[]): any[];
325
+ /**
326
+ *
327
+ * @param {*} arr
328
+ * @param {*} iteratee
329
+ * @returns
330
+ */
331
+ export declare function uniqBy(arr: any[], iteratee: Function): any[];
332
+ /**
333
+ *
334
+ * @param {*} obj1
335
+ * @param {*} obj2
336
+ * @returns
337
+ */
338
+ export declare function merge(obj1: any, obj2: any): any;
339
+ /**
340
+ *
341
+ * @param data
342
+ */
343
+ export declare function clone(data: any): any;
344
+ /**
345
+ *
346
+ * @param object
347
+ * @param path
348
+ */
349
+ export declare function getAttr(object: any, path: string): any;
350
+ /**
351
+ *
352
+ * @param object
353
+ * @param path
354
+ * @param value
355
+ */
356
+ export declare function setAttr(object: any, path: string, value: any): any;
357
+ /**
358
+ *
359
+ * @param object
360
+ * @param path
361
+ */
362
+ export declare function hasAttr(object: any, path: string): boolean;
363
+ /**
364
+ *
365
+ * @param value1
366
+ * @param value2
367
+ */
368
+ export declare function isEqual(value1: any, value2: any): boolean;
369
+ /**
370
+ *
371
+ * @param {*} value
372
+ * @param {*} from
373
+ * @param {*} to
374
+ */
375
+ export declare function encodeString(value: string, from?: BufferEncoding, to?: BufferEncoding): string;
376
+ /**
377
+ * Split a string into chunks by specified size
378
+ * @param {String} stringToChunk The string to split
379
+ * @param {number} size the size of character to use to split the string
380
+ */
381
+ export declare function chunkString(stringToChunk: string, size: number): string[];
382
+ /**
383
+ * Initialize an object by a given dot notation structure
384
+ * eg.
385
+ * 'service.url' -> { service: { url: value } }
386
+ * @param {String} path the dot notation string representation of property
387
+ * @param {*} value the value to be used
388
+ */
389
+ export declare function initObjectFromDotNotation(path: string, value: any): any;
390
+ /**
391
+ * Initialize an object with a dot notation property name
392
+ * eg.
393
+ * 'service.url' -> { "service.url": value }
394
+ * @param {String} path
395
+ * @param {*} value
396
+ */
397
+ export declare function initObjectWithProperty(path: string, value: any): any;
398
+ /**
399
+ * Resize phrase Buffer by given size
400
+ * @param { Buffer } phrase
401
+ * @param { number } size
402
+ * @returns { Buffer } Given size buffer based on given phrase buffer
403
+ */
404
+ export declare function resizeBuffer(buffer: Buffer, size: number): Buffer;
405
+ /**
406
+ * Generate a random Hex string (using sha256 HASH Algorithm)
407
+ * @returns { Buffer } Buffer representation of hash
408
+ */
409
+ export declare function generateRandomHex(): Buffer;
410
+ /**
411
+ * Generate random buffer of specified size
412
+ * @param { number } bitSize bit size of the buffer
413
+ * @returns { Buffer } Given size random Buffer
414
+ */
415
+ export declare function generateRandomBuffer(bitSize: number): Buffer;
416
+ /**
417
+ * Use object to filter another object
418
+ * @param {*} obj
419
+ * @param {*} filterObj
420
+ */
421
+ export declare function filterObject(obj: any, filterObj: any): any;
422
+ /**
423
+ *
424
+ * @param {*} request
425
+ */
426
+ export declare function parseUserAgent(req: Request): UAParser.IResult;
427
+ /**
428
+ *
429
+ * @param {*} rule
430
+ * @param {*} options
431
+ * @param {*} method
432
+ */
433
+ export declare function scheduleJob(rule: any, { recurrence, startTime, endTime }: {
434
+ recurrence?: boolean;
435
+ startTime?: string;
436
+ endTime?: string;
437
+ }, method?: () => void): schedule.Job | null;
438
+ /**
439
+ * Schedule multiple jobs.
440
+ * Input rules have following format:
441
+ * { rule (string/obj), recurrence (bool), method (function) }
442
+ *
443
+ * Example:
444
+ * let jobs = scheduleJobs([
445
+ * { rule: { minute: 56 }, options: { recurrence: true }, method: () => { console.log('JOB AT MIN 56!') } },
446
+ * { rule: '* * * * *', options: { recurrence: true }, method: () => { console.log('JOB EVERY MINUTE!') } },
447
+ * { rule: '* * * * *', options: { recurrence: true, startTime: '10:55' }, method: () => { console.log('JOB EVERY MINUTE after 10:53!') } }
448
+ * ]);
449
+ *
450
+ * @param {*} rules array of rules objects
451
+ */
452
+ export declare function scheduleJobs(rules?: any[]): schedule.Job[];
453
+ /**
454
+ * Test password security / complexity criteria
455
+ *
456
+ * @param {*} pwd
457
+ * @returns
458
+ */
459
+ export declare function checkPasswordComplexity(pwd: string): boolean;
460
+ /**
461
+ * Test password security / complexity criteria
462
+ *
463
+ * @param {*} pwd
464
+ * @returns
465
+ */
466
+ export declare function checkCommonPassword(commonPwds: string[], pwd: string): boolean;
467
+ /**
468
+ * Zip and save a folder
469
+ *
470
+ * @param {*} path
471
+ * @param {*} name
472
+ * @param {*} callback
473
+ */
474
+ export declare function zipFolder(path: string, name: string): Promise<unknown>;
475
+ /**
476
+ *
477
+ * @param {*} path
478
+ * @param {*} name
479
+ * @param {*} stream
480
+ * @param {*} callback
481
+ */
482
+ export declare function zipFolderStream(path: string, name: string): NodeJS.ReadableStream;
483
+ /**
484
+ * Add files to zip object
485
+ *
486
+ * @param {*} dir
487
+ * @param {*} zip
488
+ * @param {*} callback
489
+ */
490
+ export declare function addDirectoryToZip(path: string, dir: string, zip: JSZip): JSZip;
491
+ /**
492
+ * Push in array and return value
493
+ *
494
+ * @param {*} arr
495
+ * @param {*} value
496
+ * @returns
497
+ */
498
+ export declare function arrayPushRef(arr: any[] | undefined, value: any): any;
499
+ /**
500
+ *
501
+ * @param {*} arr
502
+ * @param {*} item
503
+ * @param {*} attr
504
+ * @returns
505
+ */
506
+ export declare function arrayPushUniq(arr: any[] | undefined, item: any, attr: string): void;
507
+ /**
508
+ *
509
+ * @param {*} arr
510
+ * @param {*} item
511
+ * @param {*} attr
512
+ * @returns
513
+ */
514
+ export declare function arrayToggle(arr: any[] | undefined, item: any, attr: string): void;
515
+ /**
516
+ *
517
+ * @param {*} arrays
518
+ * @returns
519
+ */
520
+ export declare function intersectArrays(arrays?: never[]): unknown[];
521
+ /**
522
+ *
523
+ * @param {*} arrays
524
+ * @returns
525
+ */
526
+ export declare function intersectArraysBy(arr: any[] | undefined, iteratee: any): unknown[];
527
+ /**
528
+ * Get last child in a tree like structure array
529
+ * { _id: '', children: [{ _id: '', parent: '', children: [...] }]}
530
+ *
531
+ * @param {*} item
532
+ * @param {*} attr
533
+ * @param {*} arr
534
+ * @returns
535
+ */
536
+ export declare function getLastChild(item: any, attr?: string, arr?: any[]): any;
537
+ /**
538
+ * * Get an array with last childern in a tree like structure array
539
+ * { _id: '', children: [{ _id: '', parent: '', children: [...] }]}
540
+ *
541
+ * @param {*} item
542
+ * @param {*} attr
543
+ * @param {*} arr
544
+ * @returns
545
+ */
546
+ export declare function getLastChildren(items: any[], attr?: string, arr?: any[]): any;
547
+ /**
548
+ *
549
+ * @param {*} str
550
+ * @returns
551
+ */
552
+ export declare function validDataUrl(str: string): boolean;