-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.d.ts
1478 lines (1478 loc) · 53.7 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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
export const version: string;
/**
* Tests if is is running under a browser.
* @return {boolean} true if the environment has process, process.version and process.versions.
*/
export function browser(): boolean;
/**
* Test if 'value' is defined.
* Alias: def
* @param {unknown} value The value to test.
* @return {boolean} true if 'value' is defined, false otherwise.
*/
export function defined(value: unknown): boolean;
/**
* Test if 'value' is defined.
* Alias: def
* @param {unknown} value The value to test.
* @return {boolean} true if 'value' is defined, false otherwise.
*/
export function def(value: unknown): boolean;
/**
* Tests if is is running under node.js
* @return {boolean} true if the environment has process, process.version and process.versions.
*/
export function nodejs(): boolean;
/**
* Tests if is is running under node.js
* @return {boolean} true if the environment has process, process.version and process.versions.
*/
export function node(): boolean;
/**
* Test if 'value' is undefined.
* Aliases: undef, udef
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is undefined, false otherwise.
*/
export function undefined(value: unknown): boolean;
/**
* Test if 'value' is undefined.
* Aliases: undef, udef
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is undefined, false otherwise.
*/
export function udef(value: unknown): boolean;
/**
* Test if 'value' is undefined.
* Aliases: undef, udef
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is undefined, false otherwise.
*/
export function undef(value: unknown): boolean;
/**
* Test if 'value' is an array.
* Alias: ary, arry
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an array, false otherwise.
*/
export function array(value: unknown): boolean;
/**
* Test if 'value' is an array.
* Alias: ary, arry
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an array, false otherwise.
*/
export function arr(value: unknown): boolean;
/**
* Test if 'value' is an array.
* Alias: ary, arry
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an array, false otherwise.
*/
export function ary(value: unknown): boolean;
/**
* Test if 'value' is an array.
* Alias: ary, arry
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an array, false otherwise.
*/
export function arry(value: unknown): boolean;
/**
* Test if 'value' is an arraylike object (i.e. it has a length property with a valid value)
* Aliases: arraylike, arryLike, aryLike
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an arguments object, false otherwise.
*/
export function arrayLike(value: unknown): boolean;
/**
* Test if 'value' is an arraylike object (i.e. it has a length property with a valid value)
* Aliases: arraylike, arryLike, aryLike
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an arguments object, false otherwise.
*/
export function arrLike(value: unknown): boolean;
/**
* Test if 'value' is an arraylike object (i.e. it has a length property with a valid value)
* Aliases: arraylike, arryLike, aryLike
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an arguments object, false otherwise.
*/
export function arryLike(value: unknown): boolean;
/**
* Test if 'value' is an arraylike object (i.e. it has a length property with a valid value)
* Aliases: arraylike, arryLike, aryLike
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an arguments object, false otherwise.
*/
export function aryLike(value: unknown): boolean;
/**
* Test if 'value' is an arraylike object (i.e. it has a length property with a valid value)
* Aliases: arraylike, arryLike, aryLike
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an arguments object, false otherwise.
*/
export function arraylike(value: unknown): boolean;
/**
* Test if 'value' is an arguments object.
* Alias: args
* @param {unknown} value value to test
* @return {boolean} true if 'value' is an arguments object, false otherwise
*/
declare function _arguments(value: unknown): boolean;
/**
* Test if 'value' is an arguments object.
* Alias: args
* @param {unknown} value value to test
* @return {boolean} true if 'value' is an arguments object, false otherwise
*/
export function args(value: unknown): boolean;
/**
* Test if 'value' is a boolean.
* Alias: bool
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a boolean, false otherwise.
*/
export function boolean(value: unknown): boolean;
/**
* Test if 'value' is a boolean.
* Alias: bool
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a boolean, false otherwise.
*/
export function bool(value: unknown): boolean;
/**
* Test if 'value' is an instance of Buffer.
* Aliases: instOf, instanceof
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an instance of 'constructor'.
*/
export function buffer(value: unknown): boolean;
/**
* Test if 'value' is an instance of Buffer.
* Aliases: instOf, instanceof
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an instance of 'constructor'.
*/
export function buff(value: unknown): boolean;
/**
* Test if 'value' is an instance of Buffer.
* Aliases: instOf, instanceof
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an instance of 'constructor'.
*/
export function buf(value: unknown): boolean;
/**
* Test if 'value' is a date.
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a date, false otherwise.
*/
export function date(value: unknown): boolean;
/**
* Test if 'value' is an error object.
* Alias: err
* @param value value to test.
* @return {boolean} true if 'value' is an error object, false otherwise.
*/
export function error(value: unknown): boolean;
/**
* Test if 'value' is an error object.
* Alias: err
* @param value value to test.
* @return {boolean} true if 'value' is an error object, false otherwise.
*/
export function err(value: unknown): boolean;
/**
* Test if 'value' is false.
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is false, false otherwise
*/
declare function _false(value: unknown): boolean;
/**
* Test if 'value' is a function or async function.
* Alias: func
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a function, false otherwise.
*/
declare function _function(value: unknown): boolean;
/**
* Test if 'value' is a function or async function.
* Alias: func
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a function, false otherwise.
*/
export function fun(value: unknown): boolean;
/**
* Test if 'value' is a function or async function.
* Alias: func
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a function, false otherwise.
*/
export function func(value: unknown): boolean;
/**
* Test if 'value' is an async function using `async () => {}` or `async function () {}`.
* Alias: func
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a function, false otherwise.
*/
export function asyncFunction(value: unknown): boolean;
/**
* Test if 'value' is an async function using `async () => {}` or `async function () {}`.
* Alias: func
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a function, false otherwise.
*/
export function asyncFun(value: unknown): boolean;
/**
* Test if 'value' is an async function using `async () => {}` or `async function () {}`.
* Alias: func
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a function, false otherwise.
*/
export function asyncFunc(value: unknown): boolean;
/**
* Test if 'value' is a synchronous function.
* Alias: syncFunc
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a function, false otherwise.
*/
export function syncFunction(value: unknown): boolean;
/**
* Test if 'value' is a synchronous function.
* Alias: syncFunc
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a function, false otherwise.
*/
export function syncFun(value: unknown): boolean;
/**
* Test if 'value' is a synchronous function.
* Alias: syncFunc
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a function, false otherwise.
*/
export function syncFunc(value: unknown): boolean;
/**
* Test if 'value' is null.
* @param {unknown} value to test.
* @return {boolean} true if 'value' is null, false otherwise.
*/
declare function _null(value: unknown): boolean;
/**
* Test is 'value' is either null or undefined.
* Alias: nullOrUndef
* @param {unknown} value value to test.
* @return {boolean} True if value is null or undefined, false otherwise.
*/
export function nullOrUndefined(value: unknown): boolean;
/**
* Test is 'value' is either null or undefined.
* Alias: nullOrUndef
* @param {unknown} value value to test.
* @return {boolean} True if value is null or undefined, false otherwise.
*/
export function nullOrUndef(value: unknown): boolean;
/**
* Test if 'value' is a number.
* Alias: num
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function number(value: unknown): boolean;
/**
* Test if 'value' is a number.
* Alias: num
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function num(value: unknown): boolean;
/**
* Test if 'value' is an object. Note: Arrays, RegExps, Date, Error, etc all return false.
* Alias: obj
* @param {unknown} value to test.
* @return {boolean} true if 'value' is an object, false otherwise.
*/
export function object(value: unknown): boolean;
/**
* Test if 'value' is an object. Note: Arrays, RegExps, Date, Error, etc all return false.
* Alias: obj
* @param {unknown} value to test.
* @return {boolean} true if 'value' is an object, false otherwise.
*/
export function obj(value: unknown): boolean;
/**
* Test if 'value' is a regular expression.
* Alias: regexp
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a regexp, false otherwise.
*/
export function regExp(value: unknown): boolean;
/**
* Test if 'value' is a regular expression.
* Alias: regexp
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a regexp, false otherwise.
*/
export function re(value: unknown): boolean;
/**
* Test if 'value' is a regular expression.
* Alias: regexp
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a regexp, false otherwise.
*/
export function regexp(value: unknown): boolean;
/**
* Test if 'value' is a string.
* Alias: str
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a string, false otherwise.
*/
export function string(value: unknown): boolean;
/**
* Test if 'value' is a string.
* Alias: str
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a string, false otherwise.
*/
export function str(value: unknown): boolean;
/**
* Test if 'value' is true.
* @param {unknown} value to test.
* @return {boolean} true if 'value' is true, false otherwise.
*/
declare function _true(value: unknown): boolean;
export function uuid(value: unknown): boolean;
/**
* Test if 'value' is equal to 'other'. Works for objects and arrays and will do deep comparisions,
* using recursion.
* Alias: eq
* @param {unknown} value value.
* @param {unknown} other value to compare with.
* @return {boolean} true if 'value' is equal to 'other', false otherwise
*/
export function equal(value: unknown, other: unknown): boolean;
/**
* Test if 'value' is equal to 'other'. Works for objects and arrays and will do deep comparisions,
* using recursion.
* Alias: eq
* @param {unknown} value value.
* @param {unknown} other value to compare with.
* @return {boolean} true if 'value' is equal to 'other', false otherwise
*/
export function objEquals(value: unknown, other: unknown): boolean;
/**
* Test if 'value' is equal to 'other'. Works for objects and arrays and will do deep comparisions,
* using recursion.
* Alias: eq
* @param {unknown} value value.
* @param {unknown} other value to compare with.
* @return {boolean} true if 'value' is equal to 'other', false otherwise
*/
export function eq(value: unknown, other: unknown): boolean;
/**
* Test if 'key' in host is an object. To be hosted means host[value] is an object.
* @param {unknown} value The value to test.
* @param {unknown} host Host that may contain value.
* @return {boolean} true if 'value' is hosted by 'host', false otherwise.
*/
export function hosted(value: unknown, host: unknown): boolean;
/**
* Test if 'value' is an instance of 'constructor'.
* Aliases: instOf, instanceof
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an instance of 'constructor'.
*/
export function instanceOf(value: unknown, constructor: unknown): boolean;
export const instOf:
| ((value: unknown, constructor: unknown) => boolean)
| ((objInst: object, objType: object) => boolean);
/**
* Test if 'value' is an instance of 'constructor'.
* Aliases: instOf, instanceof
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an instance of 'constructor'.
*/
declare function _instanceof(value: unknown, constructor: unknown): boolean;
/**
* Test if 'value' is an instance type objType.
* Aliases: objInstOf, objectinstanceof, instOf, instanceOf
* @param {object} objInst an object to testfor type.
* @param {object} objType an object type to compare.
* @return {boolean} true if 'value' is an object, false otherwise.
*/
export function objectInstanceOf(objInst: object, objType: object): boolean;
/**
* Test if 'value' is an instance type objType.
* Aliases: objInstOf, objectinstanceof, instOf, instanceOf
* @param {object} objInst an object to testfor type.
* @param {object} objType an object type to compare.
* @return {boolean} true if 'value' is an object, false otherwise.
*/
export function objInstOf(objInst: object, objType: object): boolean;
/**
* Test if 'value' is a type of 'type'.
* Alias: a
* @param value value to test.
* @param {string} type The name of the type.
* @return {boolean} true if 'value' is an arguments object, false otherwise.
*/
export function type(value: unknown, type: string): boolean;
/**
* Test if 'value' is a type of 'type'.
* Alias: a
* @param value value to test.
* @param {string} type The name of the type.
* @return {boolean} true if 'value' is an arguments object, false otherwise.
*/
export function a(value: unknown, type: string): boolean;
/**
* Test if 'value' is empty. To be empty means to be an array, object or string with nothing contained.
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is empty, false otherwise.
*/
export function empty(value: unknown): boolean;
/**
* Test if 'value' is an arguments object that is empty.
* Alias: args
* @param {unknown} value value to test
* @return {boolean} true if 'value' is an arguments object with no args, false otherwise
*/
export function emptyArguments(value: unknown): boolean;
/**
* Test if 'value' is an arguments object that is empty.
* Alias: args
* @param {unknown} value value to test
* @return {boolean} true if 'value' is an arguments object with no args, false otherwise
*/
export function noArgs(value: unknown): boolean;
/**
* Test if 'value' is an arguments object that is empty.
* Alias: args
* @param {unknown} value value to test
* @return {boolean} true if 'value' is an arguments object with no args, false otherwise
*/
export function emptyArgs(value: unknown): boolean;
/**
* Test if 'value' is an array containing no entries.
* Aliases: emptyArry, emptyAry
* @param {unknown} value The value to test.
* @return {boolean} true if 'value' is an array with no elemnets.
*/
export function emptyArray(value: unknown): boolean;
/**
* Test if 'value' is an array containing no entries.
* Aliases: emptyArry, emptyAry
* @param {unknown} value The value to test.
* @return {boolean} true if 'value' is an array with no elemnets.
*/
export function emptyArry(value: unknown): boolean;
/**
* Test if 'value' is an array containing no entries.
* Aliases: emptyArry, emptyAry
* @param {unknown} value The value to test.
* @return {boolean} true if 'value' is an array with no elemnets.
*/
export function emptyAry(value: unknown): boolean;
/**
* Test if 'value' is an empty array(like) object.
* Aliases: arguents.empty, args.empty, ary.empty, arry.empty
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an empty array(like), false otherwise.
*/
export function emptyArrayLike(value: unknown): boolean;
/**
* Test if 'value' is an empty array(like) object.
* Aliases: arguents.empty, args.empty, ary.empty, arry.empty
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is an empty array(like), false otherwise.
*/
export function emptyArrLike(value: unknown): boolean;
/**
* Test if 'value' is an empty string.
* Alias: emptyStr
* @param {unknown} value to test.
* @return {boolean} true if 'value' is am empty string, false otherwise.
*/
export function emptyString(value: unknown): boolean;
/**
* Test if 'value' is an empty string.
* Alias: emptyStr
* @param {unknown} value to test.
* @return {boolean} true if 'value' is am empty string, false otherwise.
*/
export function emptyStr(value: unknown): boolean;
/**
* Test if 'value' is an array containing at least 1 entry.
* Aliases: nonEmptyArry, nonEmptyAry
* @param {unknown} value The value to test.
* @return {boolean} true if 'value' is an array with at least 1 value, false otherwise.
*/
export function nonEmptyArray(value: unknown): boolean;
/**
* Test if 'value' is an array containing at least 1 entry.
* Aliases: nonEmptyArry, nonEmptyAry
* @param {unknown} value The value to test.
* @return {boolean} true if 'value' is an array with at least 1 value, false otherwise.
*/
export function nonEmptyArr(value: unknown): boolean;
/**
* Test if 'value' is an array containing at least 1 entry.
* Aliases: nonEmptyArry, nonEmptyAry
* @param {unknown} value The value to test.
* @return {boolean} true if 'value' is an array with at least 1 value, false otherwise.
*/
export function nonEmptyArry(value: unknown): boolean;
/**
* Test if 'value' is an array containing at least 1 entry.
* Aliases: nonEmptyArry, nonEmptyAry
* @param {unknown} value The value to test.
* @return {boolean} true if 'value' is an array with at least 1 value, false otherwise.
*/
export function nonEmptyAry(value: unknown): boolean;
/**
* Test if 'value' is an object with properties. Note: Arrays are objects.
* Alias: nonEmptyObj
* @param {unknown} value to test.
* @return {boolean} true if 'value' is an object, false otherwise.
*/
export function nonEmptyObject(value: unknown): boolean;
/**
* Test if 'value' is an object with properties. Note: Arrays are objects.
* Alias: nonEmptyObj
* @param {unknown} value to test.
* @return {boolean} true if 'value' is an object, false otherwise.
*/
export function nonEmptyObj(value: unknown): boolean;
/**
* Test if 'value' is an object with no properties. Note: Arrays are objects.
* Alias: nonEmptyObj
* @param {unknown} value to test.
* @return {boolean} true if 'value' is an object, false otherwise.
*/
export function emptyObject(value: unknown): boolean;
/**
* Test if 'value' is an object with no properties. Note: Arrays are objects.
* Alias: nonEmptyObj
* @param {unknown} value to test.
* @return {boolean} true if 'value' is an object, false otherwise.
*/
export function emptyObj(value: unknown): boolean;
/**
* Test if 'value' is a non-empty string.
* Alias: nonEmptyStr
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a non-empty string, false otherwise.
*/
export function nonEmptyString(value: unknown): boolean;
/**
* Test if 'value' is a non-empty string.
* Alias: nonEmptyStr
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a non-empty string, false otherwise.
*/
export function nonEmptyStr(value: unknown): boolean;
/**
* Test if 'value' is an even number.
* @param {Number} value to test.
* @return {boolean} true if 'value' is an even number, false otherwise.
*/
export function even(value: number): boolean;
/**
* Test if 'value' is a decimal number.
* Aliases: decimalNumber, decNum
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a decimal number, false otherwise.
*/
export function decimal(value: unknown): boolean;
/**
* Test if 'value' is a decimal number.
* Aliases: decimalNumber, decNum
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a decimal number, false otherwise.
*/
export function dec(value: unknown): boolean;
/**
* Test if 'value' is a decimal number.
* Aliases: decimalNumber, decNum
* @param {unknown} value value to test.
* @return {boolean} true if 'value' is a decimal number, false otherwise.
*/
export function decNum(value: unknown): boolean;
/**
* Test if 'value' is an integer.
* Alias: integer
* @param {unknown} value to test.
* @return {boolean} true if 'value' is an integer, false otherwise.
*/
export function integer(value: unknown): boolean;
/**
* Test if 'value' is an integer.
* Alias: integer
* @param {unknown} value to test.
* @return {boolean} true if 'value' is an integer, false otherwise.
*/
export function int(value: unknown): boolean;
/**
* is.nan
* Test if `value` is not a number.
*
* @param {unknown} value value to test
* @return {boolean} true if `value` is not a number, false otherwise
* @api public
*/
export function notANumber(value: unknown): boolean;
/**
* is.nan
* Test if `value` is not a number.
*
* @param {unknown} value value to test
* @return {boolean} true if `value` is not a number, false otherwise
* @api public
*/
export function nan(value: unknown): boolean;
/**
* is.nan
* Test if `value` is not a number.
*
* @param {unknown} value value to test
* @return {boolean} true if `value` is not a number, false otherwise
* @api public
*/
export function notANum(value: unknown): boolean;
/**
* Test if 'value' is an odd number.
* @param {Number} value to test.
* @return {boolean} true if 'value' is an odd number, false otherwise.
*/
export function odd(value: number): boolean;
/**
* Test if 'value' is an odd number.
* @param {Number} value to test.
* @return {boolean} true if 'value' is an odd number, false otherwise.
*/
export function oddNumber(value: number): boolean;
/**
* Test if 'value' is an odd number.
* @param {Number} value to test.
* @return {boolean} true if 'value' is an odd number, false otherwise.
*/
export function oddNum(value: number): boolean;
/**
* Test if 'value' is a positive number.
* Alias: positiveNum, posNum
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function positiveNumber(value: unknown): boolean;
/**
* Test if 'value' is a positive number.
* Alias: positiveNum, posNum
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function pos(value: unknown): boolean;
/**
* Test if 'value' is a positive number.
* Alias: positiveNum, posNum
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function positive(value: unknown): boolean;
/**
* Test if 'value' is a positive number.
* Alias: positiveNum, posNum
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function posNum(value: unknown): boolean;
/**
* Test if 'value' is a positive number.
* Alias: positiveNum, posNum
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function positiveNum(value: unknown): boolean;
/**
* Test if 'value' is a negative number.
* Aliases: negNum, negativeNum
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function negativeNumber(value: unknown): boolean;
/**
* Test if 'value' is a negative number.
* Aliases: negNum, negativeNum
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function neg(value: unknown): boolean;
/**
* Test if 'value' is a negative number.
* Aliases: negNum, negativeNum
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function negNum(value: unknown): boolean;
/**
* Test if 'value' is a negative number.
* Aliases: negNum, negativeNum
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a number, false otherwise.
*/
export function negativeNum(value: unknown): boolean;
/**
* Test if 'value' is a negative integer.
* Aliases: negInt, negativeInteger
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a negative integer, false otherwise.
*/
export function negativeInteger(value: unknown): boolean;
/**
* Test if 'value' is a negative integer.
* Aliases: negInt, negativeInteger
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a negative integer, false otherwise.
*/
export function negativeInt(value: unknown): boolean;
/**
* Test if 'value' is a negative integer.
* Aliases: negInt, negativeInteger
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a negative integer, false otherwise.
*/
export function negInt(value: unknown): boolean;
/**
* Test if 'value' is a positive integer.
* Alias: posInt
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a positive integer, false otherwise.
*/
export function positiveInteger(value: unknown): boolean;
/**
* Test if 'value' is a positive integer.
* Alias: posInt
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a positive integer, false otherwise.
*/
export function posInt(value: unknown): boolean;
/**
* Test if 'value' is a positive integer.
* Alias: posInt
* @param {unknown} value to test.
* @return {boolean} true if 'value' is a positive integer, false otherwise.
*/
export function positiveInt(value: unknown): boolean;
/**
* Test if 'value' is divisible by 'n'.
* Alias: divisBy
* @param {Number} value value to test.
* @param {Number} n dividend.
* @return {boolean} true if 'value' is divisible by 'n', false otherwise.
*/
export function divisibleBy(value: number, n: number): boolean;
/**
* Test if 'value' is divisible by 'n'.
* Alias: divisBy
* @param {Number} value value to test.
* @param {Number} n dividend.
* @return {boolean} true if 'value' is divisible by 'n', false otherwise.
*/
export function divBy(value: number, n: number): boolean;
/**
* Test if 'value' is divisible by 'n'.
* Alias: divisBy
* @param {Number} value value to test.
* @param {Number} n dividend.
* @return {boolean} true if 'value' is divisible by 'n', false otherwise.
*/
export function divisBy(value: number, n: number): boolean;
/**
* Test if 'value' is greater than or equal to 'other'.
* Aliases: greaterOrEq, greaterOrEqual
* @param {Number} value value to test.
* @param {Number} other value to compare with.
* @return {boolean} true, if value is greater than or equal to other, false otherwise.
*/
export function greaterOrEqualTo(value: number, other: number): boolean;
/**
* Test if 'value' is greater than or equal to 'other'.
* Aliases: greaterOrEq, greaterOrEqual
* @param {Number} value value to test.
* @param {Number} other value to compare with.
* @return {boolean} true, if value is greater than or equal to other, false otherwise.
*/
export function greaterOrEqual(value: number, other: number): boolean;
/**
* Test if 'value' is greater than or equal to 'other'.
* Aliases: greaterOrEq, greaterOrEqual
* @param {Number} value value to test.
* @param {Number} other value to compare with.
* @return {boolean} true, if value is greater than or equal to other, false otherwise.
*/
export function ge(value: number, other: number): boolean;
/**
* Test if 'value' is greater than 'other'.
* Aliases: greaterThan
* @param {Number} value value to test.
* @param {Number} other value to compare with.
* @return {boolean} true, if value is greater than other, false otherwise.
*/
export function greaterThan(value: number, other: number): boolean;
/**
* Test if 'value' is greater than 'other'.
* Aliases: greaterThan
* @param {Number} value value to test.
* @param {Number} other value to compare with.
* @return {boolean} true, if value is greater than other, false otherwise.
*/
export function gt(value: number, other: number): boolean;
/**
* Test if 'value' is less than or equal to 'other'.
* Alias: lessThanOrEq, lessThanOrEqual
* @param {Number} value value to test
* @param {Number} other value to compare with
* @return {boolean} true, if 'value' is less than or equal to 'other', false otherwise.
*/
export function lessThanOrEqualTo(value: number, other: number): boolean;
/**
* Test if 'value' is less than or equal to 'other'.
* Alias: lessThanOrEq, lessThanOrEqual
* @param {Number} value value to test
* @param {Number} other value to compare with
* @return {boolean} true, if 'value' is less than or equal to 'other', false otherwise.
*/
export function lessThanOrEq(value: number, other: number): boolean;
/**
* Test if 'value' is less than or equal to 'other'.
* Alias: lessThanOrEq, lessThanOrEqual
* @param {Number} value value to test
* @param {Number} other value to compare with
* @return {boolean} true, if 'value' is less than or equal to 'other', false otherwise.
*/
export function lessThanOrEqual(value: number, other: number): boolean;
/**
* Test if 'value' is less than or equal to 'other'.
* Alias: lessThanOrEq, lessThanOrEqual
* @param {Number} value value to test
* @param {Number} other value to compare with
* @return {boolean} true, if 'value' is less than or equal to 'other', false otherwise.
*/
export function le(value: number, other: number): boolean;
/**
* Test if 'value' is less than 'other'.
* Alias: lessThan
* @param {Number} value value to test
* @param {Number} other value to compare with
* @return {boolean} true, if 'value' is less than 'other', false otherwise.
*/
export function lessThan(value: number, other: number): boolean;
/**
* Test if 'value' is less than 'other'.
* Alias: lessThan
* @param {Number} value value to test
* @param {Number} other value to compare with
* @return {boolean} true, if 'value' is less than 'other', false otherwise.
*/
export function lt(value: number, other: number): boolean;
/**
* Test if 'value' is greater than 'others' values.
* Alias: max
* @param {Number} value value to test.
* @param {Array} others values to compare with.
* @return {boolean} true if 'value' is greater than 'others' values.
*/
export function maximum(value: number, others: unknown[]): boolean;
/**
* Test if 'value' is greater than 'others' values.
* Alias: max
* @param {Number} value value to test.
* @param {Array} others values to compare with.
* @return {boolean} true if 'value' is greater than 'others' values.
*/
export function max(value: number, others: unknown[]): boolean;
/**
* Test if 'value' is less than 'others' values.
* Alias: min
* @param {Number} value value to test.
* @param {Array} others values to compare with.
* @return {boolean} true if 'value' is less than 'others' values.
*/
export function minimum(value: number, others: unknown[]): boolean;
/**
* Test if 'value' is less than 'others' values.
* Alias: min
* @param {Number} value value to test.
* @param {Array} others values to compare with.
* @return {boolean} true if 'value' is less than 'others' values.
*/
export function min(value: number, others: unknown[]): boolean;
/**
* Test if 'value' is within 'start' and 'finish'.
* Alias: withIn
* @param {Number} value value to test.
* @param {Number} start lower bound.
* @param {Number} finish upper bound.
* @return {boolean} true if 'value' is is within 'start' and 'finish', false otherwise.
*/
export function within(value: number, start: number, finish: number): boolean;
/**
* Test if 'value' is within 'start' and 'finish'.
* Alias: withIn
* @param {Number} value value to test.
* @param {Number} start lower bound.
* @param {Number} finish upper bound.
* @return {boolean} true if 'value' is is within 'start' and 'finish', false otherwise.
*/
export function withIn(value: number, start: number, finish: number): boolean;
/**
* Test if 'value' is within 'precision' decimal places from 'comparitor'.
* Alias: closish, near.
* @param {Number} value value to test
* @param {Number} comparitor value to test 'value' against
* @param {Number} precision number of decimals to compare floating points, defaults to 2
* @return {boolean} true if 'value' is within 'precision' decimal places from 'comparitor', false otherwise.
*/
export function prettyClose(
value: number,
comparitor: number,
precision: number
): boolean;
/**
* Test if 'value' is within 'precision' decimal places from 'comparitor'.
* Alias: closish, near.
* @param {Number} value value to test
* @param {Number} comparitor value to test 'value' against
* @param {Number} precision number of decimals to compare floating points, defaults to 2
* @return {boolean} true if 'value' is within 'precision' decimal places from 'comparitor', false otherwise.
*/
export function closish(
value: number,
comparitor: number,
precision: number
): boolean;
/**
* Test if 'value' is within 'precision' decimal places from 'comparitor'.
* Alias: closish, near.
* @param {Number} value value to test
* @param {Number} comparitor value to test 'value' against
* @param {Number} precision number of decimals to compare floating points, defaults to 2
* @return {boolean} true if 'value' is within 'precision' decimal places from 'comparitor', false otherwise.
*/
export function near(
value: number,
comparitor: number,
precision: number
): boolean;
/**
* Test if a value is a valid DNS address. eg www.stdarg.com is true while
* 127.0.0.1 is false.
* @param {unknown} value to test if a DNS address.
* @return {boolean} true if a DNS address, false otherwise.
* DNS Address is made up of labels separated by '.'
* Each label must be between 1 and 63 characters long
* The entire hostname (including the delimiting dots) has a maximum of 255 characters.
* Hostname may not contain other characters, such as the underscore character (_)
* other DNS names may contain the underscore.
*/
export function dnsAddress(value: unknown): boolean;
/**
* Test if a value is a valid DNS address. eg www.stdarg.com is true while
* 127.0.0.1 is false.
* @param {unknown} value to test if a DNS address.
* @return {boolean} true if a DNS address, false otherwise.
* DNS Address is made up of labels separated by '.'
* Each label must be between 1 and 63 characters long
* The entire hostname (including the delimiting dots) has a maximum of 255 characters.
* Hostname may not contain other characters, such as the underscore character (_)
* other DNS names may contain the underscore.
*/
export function dnsAddr(value: unknown): boolean;
/**
* Test if a value is a valid DNS address. eg www.stdarg.com is true while
* 127.0.0.1 is false.
* @param {unknown} value to test if a DNS address.
* @return {boolean} true if a DNS address, false otherwise.
* DNS Address is made up of labels separated by '.'
* Each label must be between 1 and 63 characters long
* The entire hostname (including the delimiting dots) has a maximum of 255 characters.
* Hostname may not contain other characters, such as the underscore character (_)
* other DNS names may contain the underscore.
*/
export function dns(value: unknown): boolean;
/**