clientnode 4.0.1494 → 4.0.1495

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 (113) hide show
  1. package/dist/Lock.d.ts +39 -0
  2. package/dist/Lock.js +68 -83
  3. package/dist/Logger.d.ts +102 -0
  4. package/dist/Logger.js +693 -163
  5. package/dist/Semaphore.d.ts +29 -0
  6. package/dist/Semaphore.js +55 -46
  7. package/dist/array.d.ts +150 -0
  8. package/dist/array.js +545 -337
  9. package/dist/bundle/index.js +4512 -0
  10. package/dist/cli.d.ts +31 -0
  11. package/dist/cli.js +44 -37
  12. package/dist/compatible/Lock.js +85 -0
  13. package/dist/compatible/Logger.js +715 -0
  14. package/dist/compatible/Semaphore.js +74 -0
  15. package/dist/compatible/array.js +660 -0
  16. package/dist/compatible/cli.js +58 -0
  17. package/dist/compatible/constants.js +200 -0
  18. package/dist/compatible/context.js +224 -0
  19. package/dist/compatible/cookie.js +240 -0
  20. package/dist/compatible/data-transfer.js +751 -0
  21. package/dist/compatible/datetime.js +1088 -0
  22. package/dist/compatible/domNode.js +481 -0
  23. package/dist/compatible/expression/evaluators.js +1152 -0
  24. package/dist/compatible/expression/helper.js +115 -0
  25. package/dist/compatible/expression/index.js +1274 -0
  26. package/dist/compatible/expression/indicator-functions.js +224 -0
  27. package/dist/compatible/expression/type.js +16 -0
  28. package/dist/compatible/filesystem.js +373 -0
  29. package/dist/compatible/function.js +114 -0
  30. package/dist/compatible/index.js +3081 -0
  31. package/dist/compatible/indicators.js +471 -0
  32. package/dist/compatible/module.js +168 -0
  33. package/dist/compatible/number.js +433 -0
  34. package/dist/compatible/object.js +1042 -0
  35. package/dist/compatible/process.js +230 -0
  36. package/dist/compatible/property-types.js +36 -0
  37. package/dist/compatible/scope.js +2016 -0
  38. package/dist/compatible/string.js +1156 -0
  39. package/dist/compatible/test-helper.js +837 -0
  40. package/dist/compatible/type.js +16 -0
  41. package/dist/compatible/utility.js +358 -0
  42. package/dist/constants.d.ts +99 -0
  43. package/dist/constants.js +184 -110
  44. package/dist/context.d.ts +8 -0
  45. package/dist/context.js +209 -25
  46. package/dist/cookie.d.ts +31 -0
  47. package/dist/cookie.js +204 -48
  48. package/dist/data-transfer.d.ts +45 -0
  49. package/dist/data-transfer.js +701 -166
  50. package/dist/datetime.d.ts +37 -0
  51. package/dist/datetime.js +1047 -245
  52. package/dist/domNode.d.ts +82 -0
  53. package/dist/domNode.js +427 -277
  54. package/dist/expression/evaluators.d.ts +55 -0
  55. package/dist/expression/evaluators.js +1113 -234
  56. package/dist/expression/helper.d.ts +4 -0
  57. package/dist/expression/helper.js +100 -82
  58. package/dist/expression/index.d.ts +7 -0
  59. package/dist/expression/index.js +1258 -10
  60. package/dist/expression/indicator-functions.d.ts +14 -0
  61. package/dist/expression/indicator-functions.js +208 -21
  62. package/dist/expression/type.d.ts +70 -0
  63. package/dist/expression/type.js +1 -5
  64. package/dist/filesystem.d.ts +143 -0
  65. package/dist/filesystem.js +286 -324
  66. package/dist/function.d.ts +20 -0
  67. package/dist/function.js +90 -51
  68. package/dist/index.d.ts +23 -0
  69. package/dist/index.js +3064 -26
  70. package/dist/indicators.d.ts +68 -0
  71. package/dist/indicators.js +418 -79
  72. package/dist/module.d.ts +10 -0
  73. package/dist/module.js +154 -109
  74. package/dist/number.d.ts +35 -0
  75. package/dist/number.js +397 -25
  76. package/dist/object.d.ts +231 -0
  77. package/dist/object.js +854 -803
  78. package/dist/process.d.ts +22 -0
  79. package/dist/process.js +200 -38
  80. package/dist/property-types.d.ts +460 -0
  81. package/dist/property-types.js +17 -96
  82. package/dist/scope.d.ts +44 -0
  83. package/dist/scope.js +1987 -56
  84. package/dist/string.d.ts +319 -0
  85. package/dist/string.js +929 -633
  86. package/dist/test/Lock.d.ts +1 -0
  87. package/dist/test/Logger.d.ts +1 -0
  88. package/dist/test/Semaphore.d.ts +1 -0
  89. package/dist/test/array.d.ts +1 -0
  90. package/dist/test/cookie.d.ts +1 -0
  91. package/dist/test/data-transfer.d.ts +1 -0
  92. package/dist/test/datetime.d.ts +1 -0
  93. package/dist/test/domNode.d.ts +1 -0
  94. package/dist/test/expression/evaluators.d.ts +1 -0
  95. package/dist/test/expression/helper.d.ts +1 -0
  96. package/dist/test/expression/indicator-functions.d.ts +1 -0
  97. package/dist/test/filesystem.d.ts +1 -0
  98. package/dist/test/function.d.ts +1 -0
  99. package/dist/test/indicators.d.ts +1 -0
  100. package/dist/test/number.d.ts +1 -0
  101. package/dist/test/object.d.ts +1 -0
  102. package/dist/test/process.d.ts +1 -0
  103. package/dist/test/property-types.d.ts +1 -0
  104. package/dist/test/scope.d.ts +1 -0
  105. package/dist/test/string.d.ts +1 -0
  106. package/dist/test/utility.d.ts +1 -0
  107. package/dist/test-helper.d.ts +245 -0
  108. package/dist/test-helper.js +514 -289
  109. package/dist/type.d.ts +248 -0
  110. package/dist/type.js +4 -9
  111. package/dist/utility.d.ts +44 -0
  112. package/dist/utility.js +310 -91
  113. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,245 @@
1
+ import { AnyFunction, FirstParameter, FunctionTestTuple, FunctionTestPromiseTuple, FunctionTestPromiseRejectionTuple, TestMatchers as Matchers, TestSymbol, ThenParameter, UnknownFunction, FunctionTestAgainstResolvedPromiseTuple, FunctionTestPromiseAgainstResolvedPromiseTuple, FunctionTestPromiseRejectionAgainstResolvedPromiseTuple } from './type';
2
+ export declare const TEST_DEFINED_SYMBOL: unique symbol;
3
+ export declare const TEST_THROW_SYMBOL: unique symbol;
4
+ export declare const TEST_UNDEFINED_SYMBOL: unique symbol;
5
+ /**
6
+ * Tests given result against given expectations. Respects special symbol
7
+ * values.
8
+ * @param givenResult - Target to compare expectation against.
9
+ * @param expected - Expected result.
10
+ * @param wrap - Indicates whether to wrap with an expect function call.
11
+ * @returns Nothing or a promise resolving to nothing.
12
+ */
13
+ export declare const expectExpectedType: <Type = unknown, Result extends Promise<void> | void = void>(givenResult: Matchers<Result> | Result, expected: TestSymbol | Type, wrap?: boolean) => Result;
14
+ /**
15
+ * Tests each given test set (expected value follows by various list of
16
+ * function parameters). It respects function signature to raise compile time
17
+ * errors if given test set does not match given function signature.
18
+ * @param functionName - Function description to test.
19
+ * @param callback - Function reference to test.
20
+ * @param functionTestTuple - Additional arrays of test sets to test given
21
+ * function again.
22
+ */
23
+ export declare const testEach: {
24
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>): void;
25
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>): void;
26
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>): void;
27
+ };
28
+ /**
29
+ * Tests each given test set (promise resolving to expected value follows by
30
+ * various list of function parameters). It respects function signature to
31
+ * raise compile time errors if given test set does not match given function
32
+ * signature.
33
+ * @param functionName - Function description to test.
34
+ * @param callback - Function reference to test.
35
+ * @param functionTestTuple - Additional arrays of test sets to test given
36
+ * function again.
37
+ */
38
+ export declare const testEachAgainstResolvedPromise: {
39
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
40
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
41
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
42
+ };
43
+ /**
44
+ * Tests each given test set (expected value follows by various list of
45
+ * function parameters). It respects function signature to raise compile time
46
+ * errors if given test set does not match given function signature.
47
+ * @param functionName - Function description to test.
48
+ * @param callback - Function reference to test.
49
+ * @param functionTestTuple - Additional arrays of test sets to test given
50
+ * function again.
51
+ */
52
+ export declare const testEachResolvedPromise: {
53
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
54
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
55
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
56
+ };
57
+ /**
58
+ * Tests each given test set (expected value follows by various list of
59
+ * function parameters). It respects function signature to raise compile time
60
+ * errors if given test set does not match given function signature.
61
+ * @param functionName - Function description to test.
62
+ * @param callback - Function reference to test.
63
+ * @param functionTestTuple - Additional arrays of test sets to test given
64
+ * function again.
65
+ */
66
+ export declare const testEachResolvedPromiseAgainstResolvedPromise: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void;
67
+ /**
68
+ * Tests each given test set (expected value follows by various list of
69
+ * function parameters). It respects function signature to raise compile time
70
+ * errors if given test set does not match given function signature.
71
+ * @param functionName - Function description to test.
72
+ * @param callback - Function reference to test.
73
+ * @param functionTestTuple - Additional arrays of test sets to test given
74
+ * function again.
75
+ */
76
+ export declare const testEachRejectedPromise: {
77
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>): void;
78
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>): void;
79
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>): void;
80
+ };
81
+ /**
82
+ * Tests each given test set (expected value follows by various list of
83
+ * function parameters). It respects function signature to raise compile time
84
+ * errors if given test set does not match given function signature.
85
+ * @param functionName - Function description to test.
86
+ * @param callback - Function reference to test.
87
+ * @param functionTestTuple - Additional arrays of test sets to test given
88
+ * function again.
89
+ */
90
+ export declare const testEachRejectedPromiseAgainstResolvedPromise: {
91
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>): void;
92
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>): void;
93
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>): void;
94
+ };
95
+ /**
96
+ * Tests each given single parameter against same given expected value. It
97
+ * respects function signature to raise compile time errors if given test set
98
+ * does not match given function signature.
99
+ * @param functionName - Function description to test.
100
+ * @param callback - Function reference to test.
101
+ * @param expected - Value to check each function call return value against.
102
+ * @param parameters - Additional first parameters to test given function with.
103
+ */
104
+ export declare const testEachSingleParameterAgainstSameExpectation: {
105
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
106
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
107
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
108
+ };
109
+ /**
110
+ * Tests each given single parameter against same given expected value. It
111
+ * respects function signature to raise compile time errors if given test set
112
+ * does not match given function signature.
113
+ * @param functionName - Function description to test.
114
+ * @param callback - Function reference to test.
115
+ * @param expected - Value to check each function call return value against.
116
+ * @param parameters - Additional first parameters to test given function with.
117
+ */
118
+ export declare const testEachResolvedPromiseWithSingleParameterAgainstSameExpectation: {
119
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
120
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
121
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
122
+ };
123
+ /**
124
+ * Tests each given single parameter against same given promises resolving to
125
+ * expected value. It respects function signature to raise compile time errors
126
+ * if given test set does not match given function signature.
127
+ * @param functionName - Function description to test.
128
+ * @param callback - Function reference to test.
129
+ * @param expected - Promise resolving to value to check each function call
130
+ * return value against.
131
+ * @param parameters - Additional first parameters to test given function with.
132
+ */
133
+ export declare const testEachResolvedPromiseWithSingleParameterAgainstSameResolvedPromise: {
134
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
135
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
136
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
137
+ };
138
+ /**
139
+ * Tests each given single parameter against same given expected value. It
140
+ * respects function signature to raise compile time errors if given test set
141
+ * does not match given function signature.
142
+ * @param functionName - Function description to test.
143
+ * @param callback - Function reference to test.
144
+ * @param expected - Value to check each function call return value against.
145
+ * @param parameters - Additional first parameters to test given function with.
146
+ */
147
+ export declare const testEachRejectedPromiseWithSingleParameterAgainstSameExpectation: {
148
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
149
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
150
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
151
+ };
152
+ /**
153
+ * Tests each given single parameter against same given expected value. It
154
+ * respects function signature to raise compile time errors if given test set
155
+ * does not match given function signature.
156
+ * @param functionName - Function description to test.
157
+ * @param callback - Function reference to test.
158
+ * @param expected - Value to check each function call return value against.
159
+ * @param parameters - Additional first parameters to test given function with.
160
+ */
161
+ export declare const testEachRejectedPromiseWithSingleParameterAgainstSameResolvedPromise: {
162
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
163
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
164
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
165
+ };
166
+ /**
167
+ * Tests each given test set (various list of function parameters) against same
168
+ * given expected value. It respects function signature to raise compile time
169
+ * errors if given test set does not match given function signature.
170
+ * @param functionName - Function description to test.
171
+ * @param callback - Function reference to test.
172
+ * @param expected - Value to check each function call return value against.
173
+ * @param functionParameters - Additional lists of parameters to test given
174
+ * function again.
175
+ */
176
+ export declare const testEachAgainstSameExpectation: {
177
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
178
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
179
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
180
+ };
181
+ /**
182
+ * Tests each given test set (various list of function parameters) against same
183
+ * given expected value. It respects function signature to raise compile time
184
+ * errors if given test set does not match given function signature.
185
+ * @param functionName - Function description to test.
186
+ * @param callback - Function reference to test.
187
+ * @param expected - Value to check each function call return value against.
188
+ * @param functionParameters - Additional lists of parameters to test given
189
+ * function again.
190
+ */
191
+ export declare const testEachResolvedPromiseAgainstSameExpectation: {
192
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
193
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
194
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
195
+ };
196
+ /**
197
+ * Tests each given test set (various list of function parameters) against same
198
+ * given promise resolving expected value. It respects function signature to
199
+ * raise compile time errors if given test set does not match given function
200
+ * signature.
201
+ * @param functionName - Function description to test.
202
+ * @param callback - Function reference to test.
203
+ * @param expected - Promise resolving to value to check each function call
204
+ * return value against.
205
+ * @param functionParameters - Additional lists of parameters to test given
206
+ * function again.
207
+ */
208
+ export declare const testEachResolvedPromiseAgainstSameResolvedPromise: {
209
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
210
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
211
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
212
+ };
213
+ /**
214
+ * Tests each given test set (various list of function parameters) against same
215
+ * given expected value. It respects function signature to raise compile time
216
+ * errors if given test set does not match given function signature.
217
+ * @param functionName - Function description to test.
218
+ * @param callback - Function reference to test.
219
+ * @param expected - Value to check each function call return value against.
220
+ * @param functionParameters - Additional lists of parameters to test given
221
+ * function again.
222
+ */
223
+ export declare const testEachRejectedPromiseAgainstSameExpectation: {
224
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
225
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
226
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
227
+ };
228
+ /**
229
+ * Tests each given test set (various list of function parameters) against same
230
+ * given promise resolving expected value. It respects function signature to
231
+ * raise compile time errors if given test set does not match given function
232
+ * signature.
233
+ * @param functionName - Function description to test.
234
+ * @param callback - Function reference to test.
235
+ * @param expected - Promise resolving to value to check each function call
236
+ * return value against.
237
+ * @param functionParameters - Additional lists of parameters to test given
238
+ * function again.
239
+ */
240
+ export declare const testEachRejectedPromiseAgainstSameResolvedPromise: {
241
+ <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
242
+ only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
243
+ skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
244
+ };
245
+ export default testEach;