@idlebox/stripe-node-types 24.0.14-patch.0

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/LICENSE +22 -0
  2. package/README.md +16 -0
  3. package/assert/strict.d.ts +5 -0
  4. package/assert.d.ts +1053 -0
  5. package/async_hooks.d.ts +621 -0
  6. package/buffer.buffer.d.ts +464 -0
  7. package/buffer.d.ts +1928 -0
  8. package/child_process.d.ts +1547 -0
  9. package/cluster.d.ts +576 -0
  10. package/compatibility/iterators.d.ts +22 -0
  11. package/console.d.ts +449 -0
  12. package/constants.d.ts +18 -0
  13. package/crypto.d.ts +4514 -0
  14. package/dgram.d.ts +597 -0
  15. package/diagnostics_channel.d.ts +576 -0
  16. package/dns/promises.d.ts +501 -0
  17. package/dns.d.ts +916 -0
  18. package/dom-events.d.ts +100 -0
  19. package/domain.d.ts +168 -0
  20. package/events.d.ts +927 -0
  21. package/fs/promises.d.ts +1278 -0
  22. package/fs.d.ts +4444 -0
  23. package/globals.d.ts +368 -0
  24. package/globals.typedarray.d.ts +23 -0
  25. package/http.d.ts +2044 -0
  26. package/http2.d.ts +2626 -0
  27. package/https.d.ts +543 -0
  28. package/index.d.ts +96 -0
  29. package/inspector.d.ts +3993 -0
  30. package/module.d.ts +866 -0
  31. package/my-shim.d.ts +57 -0
  32. package/net.d.ts +1030 -0
  33. package/os.d.ts +494 -0
  34. package/package.json +158 -0
  35. package/path.d.ts +189 -0
  36. package/perf_hooks.d.ts +968 -0
  37. package/process.d.ts +2016 -0
  38. package/punycode.d.ts +115 -0
  39. package/querystring.d.ts +150 -0
  40. package/readline/promises.d.ts +159 -0
  41. package/readline.d.ts +592 -0
  42. package/repl.d.ts +426 -0
  43. package/sea.d.ts +154 -0
  44. package/sqlite.d.ts +689 -0
  45. package/stream/consumers.d.ts +36 -0
  46. package/stream/promises.d.ts +88 -0
  47. package/stream/web.d.ts +616 -0
  48. package/stream.d.ts +1654 -0
  49. package/string_decoder.d.ts +65 -0
  50. package/test.d.ts +2216 -0
  51. package/timers/promises.d.ts +106 -0
  52. package/timers.d.ts +285 -0
  53. package/tls.d.ts +1211 -0
  54. package/trace_events.d.ts +195 -0
  55. package/ts5.1/compatibility/disposable.d.ts +13 -0
  56. package/ts5.1/index.d.ts +100 -0
  57. package/ts5.6/buffer.buffer.d.ts +461 -0
  58. package/ts5.6/compatibility/float16array.d.ts +72 -0
  59. package/ts5.6/globals.typedarray.d.ts +21 -0
  60. package/ts5.6/index.d.ts +98 -0
  61. package/ts5.7/compatibility/float16array.d.ts +73 -0
  62. package/ts5.7/index.d.ts +98 -0
  63. package/tty.d.ts +206 -0
  64. package/undici-types/LICENSE +22 -0
  65. package/undici-types/README.md +7 -0
  66. package/undici-types/agent.d.ts +32 -0
  67. package/undici-types/api.d.ts +44 -0
  68. package/undici-types/balanced-pool.d.ts +30 -0
  69. package/undici-types/cache-interceptor.d.ts +173 -0
  70. package/undici-types/cache.d.ts +37 -0
  71. package/undici-types/client.d.ts +108 -0
  72. package/undici-types/connector.d.ts +35 -0
  73. package/undici-types/content-type.d.ts +22 -0
  74. package/undici-types/cookies.d.ts +31 -0
  75. package/undici-types/diagnostics-channel.d.ts +67 -0
  76. package/undici-types/dispatcher.d.ts +282 -0
  77. package/undici-types/env-http-proxy-agent.d.ts +22 -0
  78. package/undici-types/errors.d.ts +172 -0
  79. package/undici-types/eventsource.d.ts +62 -0
  80. package/undici-types/fetch.d.ts +211 -0
  81. package/undici-types/formdata.d.ts +109 -0
  82. package/undici-types/global-dispatcher.d.ts +10 -0
  83. package/undici-types/global-origin.d.ts +8 -0
  84. package/undici-types/h2c-client.d.ts +76 -0
  85. package/undici-types/handlers.d.ts +16 -0
  86. package/undici-types/header.d.ts +161 -0
  87. package/undici-types/index.d.ts +76 -0
  88. package/undici-types/interceptors.d.ts +35 -0
  89. package/undici-types/mock-agent.d.ts +66 -0
  90. package/undici-types/mock-call-history.d.ts +112 -0
  91. package/undici-types/mock-client.d.ts +26 -0
  92. package/undici-types/mock-errors.d.ts +13 -0
  93. package/undici-types/mock-interceptor.d.ts +94 -0
  94. package/undici-types/mock-pool.d.ts +26 -0
  95. package/undici-types/package.json +55 -0
  96. package/undici-types/patch.d.ts +30 -0
  97. package/undici-types/pool-stats.d.ts +20 -0
  98. package/undici-types/pool.d.ts +40 -0
  99. package/undici-types/proxy-agent.d.ts +29 -0
  100. package/undici-types/readable.d.ts +69 -0
  101. package/undici-types/retry-agent.d.ts +9 -0
  102. package/undici-types/retry-handler.d.ts +117 -0
  103. package/undici-types/util.d.ts +19 -0
  104. package/undici-types/utility.d.ts +8 -0
  105. package/undici-types/webidl.d.ts +267 -0
  106. package/undici-types/websocket.d.ts +185 -0
  107. package/url.d.ts +1012 -0
  108. package/util.d.ts +2300 -0
  109. package/v8.d.ts +917 -0
  110. package/vm.d.ts +1034 -0
  111. package/wasi.d.ts +179 -0
  112. package/worker_threads.d.ts +773 -0
  113. package/zlib.d.ts +666 -0
package/assert.d.ts ADDED
@@ -0,0 +1,1053 @@
1
+ /**
2
+ * The `node:assert` module provides a set of assertion functions for verifying
3
+ * invariants.
4
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/assert.js)
5
+ */
6
+
7
+ declare module "node:assert" {
8
+ /**
9
+ * An alias of {@link ok}.
10
+ * @since v0.5.9
11
+ * @param value The input that is checked for being truthy.
12
+ */
13
+ function assert(value: unknown, message?: string | Error): asserts value;
14
+ namespace assert {
15
+ /**
16
+ * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class.
17
+ */
18
+ class AssertionError extends Error {
19
+ /**
20
+ * Set to the `actual` argument for methods such as {@link assert.strictEqual()}.
21
+ */
22
+ actual: unknown;
23
+ /**
24
+ * Set to the `expected` argument for methods such as {@link assert.strictEqual()}.
25
+ */
26
+ expected: unknown;
27
+ /**
28
+ * Set to the passed in operator value.
29
+ */
30
+ operator: string;
31
+ /**
32
+ * Indicates if the message was auto-generated (`true`) or not.
33
+ */
34
+ generatedMessage: boolean;
35
+ /**
36
+ * Value is always `ERR_ASSERTION` to show that the error is an assertion error.
37
+ */
38
+ code: "ERR_ASSERTION";
39
+ constructor(options?: {
40
+ /** If provided, the error message is set to this value. */
41
+ message?: string | undefined;
42
+ /** The `actual` property on the error instance. */
43
+ actual?: unknown | undefined;
44
+ /** The `expected` property on the error instance. */
45
+ expected?: unknown | undefined;
46
+ /** The `operator` property on the error instance. */
47
+ operator?: string | undefined;
48
+ /** If provided, the generated stack trace omits frames before this function. */
49
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
50
+ stackStartFn?: Function | undefined;
51
+ });
52
+ }
53
+ /**
54
+ * This feature is deprecated and will be removed in a future version.
55
+ * Please consider using alternatives such as the `mock` helper function.
56
+ * @since v14.2.0, v12.19.0
57
+ * @deprecated Deprecated
58
+ */
59
+ class CallTracker {
60
+ /**
61
+ * The wrapper function is expected to be called exactly `exact` times. If the
62
+ * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an
63
+ * error.
64
+ *
65
+ * ```js
66
+ * import assert from 'node:assert';
67
+ *
68
+ * // Creates call tracker.
69
+ * const tracker = new assert.CallTracker();
70
+ *
71
+ * function func() {}
72
+ *
73
+ * // Returns a function that wraps func() that must be called exact times
74
+ * // before tracker.verify().
75
+ * const callsfunc = tracker.calls(func);
76
+ * ```
77
+ * @since v14.2.0, v12.19.0
78
+ * @param [fn='A no-op function']
79
+ * @param [exact=1]
80
+ * @return A function that wraps `fn`.
81
+ */
82
+ calls(exact?: number): () => void;
83
+ calls(fn: undefined, exact?: number): () => void;
84
+ calls<Func extends (...args: any[]) => any>(fn: Func, exact?: number): Func;
85
+ calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func | (() => void);
86
+ /**
87
+ * Example:
88
+ *
89
+ * ```js
90
+ * import assert from 'node:assert';
91
+ *
92
+ * const tracker = new assert.CallTracker();
93
+ *
94
+ * function func() {}
95
+ * const callsfunc = tracker.calls(func);
96
+ * callsfunc(1, 2, 3);
97
+ *
98
+ * assert.deepStrictEqual(tracker.getCalls(callsfunc),
99
+ * [{ thisArg: undefined, arguments: [1, 2, 3] }]);
100
+ * ```
101
+ * @since v18.8.0, v16.18.0
102
+ * @return An array with all the calls to a tracked function.
103
+ */
104
+ getCalls(fn: Function): CallTrackerCall[];
105
+ /**
106
+ * The arrays contains information about the expected and actual number of calls of
107
+ * the functions that have not been called the expected number of times.
108
+ *
109
+ * ```js
110
+ * import assert from 'node:assert';
111
+ *
112
+ * // Creates call tracker.
113
+ * const tracker = new assert.CallTracker();
114
+ *
115
+ * function func() {}
116
+ *
117
+ * // Returns a function that wraps func() that must be called exact times
118
+ * // before tracker.verify().
119
+ * const callsfunc = tracker.calls(func, 2);
120
+ *
121
+ * // Returns an array containing information on callsfunc()
122
+ * console.log(tracker.report());
123
+ * // [
124
+ * // {
125
+ * // message: 'Expected the func function to be executed 2 time(s) but was
126
+ * // executed 0 time(s).',
127
+ * // actual: 0,
128
+ * // expected: 2,
129
+ * // operator: 'func',
130
+ * // stack: stack trace
131
+ * // }
132
+ * // ]
133
+ * ```
134
+ * @since v14.2.0, v12.19.0
135
+ * @return An array of objects containing information about the wrapper functions returned by {@link tracker.calls()}.
136
+ */
137
+ report(): CallTrackerReportInformation[];
138
+ /**
139
+ * Reset calls of the call tracker. If a tracked function is passed as an argument, the calls will be reset for it.
140
+ * If no arguments are passed, all tracked functions will be reset.
141
+ *
142
+ * ```js
143
+ * import assert from 'node:assert';
144
+ *
145
+ * const tracker = new assert.CallTracker();
146
+ *
147
+ * function func() {}
148
+ * const callsfunc = tracker.calls(func);
149
+ *
150
+ * callsfunc();
151
+ * // Tracker was called once
152
+ * assert.strictEqual(tracker.getCalls(callsfunc).length, 1);
153
+ *
154
+ * tracker.reset(callsfunc);
155
+ * assert.strictEqual(tracker.getCalls(callsfunc).length, 0);
156
+ * ```
157
+ * @since v18.8.0, v16.18.0
158
+ * @param fn a tracked function to reset.
159
+ */
160
+ reset(fn?: Function): void;
161
+ /**
162
+ * Iterates through the list of functions passed to {@link tracker.calls()} and will throw an error for functions that
163
+ * have not been called the expected number of times.
164
+ *
165
+ * ```js
166
+ * import assert from 'node:assert';
167
+ *
168
+ * // Creates call tracker.
169
+ * const tracker = new assert.CallTracker();
170
+ *
171
+ * function func() {}
172
+ *
173
+ * // Returns a function that wraps func() that must be called exact times
174
+ * // before tracker.verify().
175
+ * const callsfunc = tracker.calls(func, 2);
176
+ *
177
+ * callsfunc();
178
+ *
179
+ * // Will throw an error since callsfunc() was only called once.
180
+ * tracker.verify();
181
+ * ```
182
+ * @since v14.2.0, v12.19.0
183
+ */
184
+ verify(): void;
185
+ }
186
+ interface CallTrackerCall {
187
+ thisArg: object;
188
+ arguments: unknown[];
189
+ }
190
+ interface CallTrackerReportInformation {
191
+ message: string;
192
+ /** The actual number of times the function was called. */
193
+ actual: number;
194
+ /** The number of times the function was expected to be called. */
195
+ expected: number;
196
+ /** The name of the function that is wrapped. */
197
+ operator: string;
198
+ /** A stack trace of the function. */
199
+ stack: object;
200
+ }
201
+ type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error;
202
+ /**
203
+ * Throws an `AssertionError` with the provided error message or a default
204
+ * error message. If the `message` parameter is an instance of an `Error` then
205
+ * it will be thrown instead of the `AssertionError`.
206
+ *
207
+ * ```js
208
+ * import assert from 'node:assert/strict';
209
+ *
210
+ * assert.fail();
211
+ * // AssertionError [ERR_ASSERTION]: Failed
212
+ *
213
+ * assert.fail('boom');
214
+ * // AssertionError [ERR_ASSERTION]: boom
215
+ *
216
+ * assert.fail(new TypeError('need array'));
217
+ * // TypeError: need array
218
+ * ```
219
+ *
220
+ * Using `assert.fail()` with more than two arguments is possible but deprecated.
221
+ * See below for further details.
222
+ * @since v0.1.21
223
+ * @param [message='Failed']
224
+ */
225
+ function fail(message?: string | Error): never;
226
+ /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
227
+ function fail(
228
+ actual: unknown,
229
+ expected: unknown,
230
+ message?: string | Error,
231
+ operator?: string,
232
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
233
+ stackStartFn?: Function,
234
+ ): never;
235
+ /**
236
+ * Tests if `value` is truthy. It is equivalent to `assert.equal(!!value, true, message)`.
237
+ *
238
+ * If `value` is not truthy, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is `undefined`, a default
239
+ * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
240
+ * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``.
241
+ *
242
+ * Be aware that in the `repl` the error message will be different to the one
243
+ * thrown in a file! See below for further details.
244
+ *
245
+ * ```js
246
+ * import assert from 'node:assert/strict';
247
+ *
248
+ * assert.ok(true);
249
+ * // OK
250
+ * assert.ok(1);
251
+ * // OK
252
+ *
253
+ * assert.ok();
254
+ * // AssertionError: No value argument passed to `assert.ok()`
255
+ *
256
+ * assert.ok(false, 'it\'s false');
257
+ * // AssertionError: it's false
258
+ *
259
+ * // In the repl:
260
+ * assert.ok(typeof 123 === 'string');
261
+ * // AssertionError: false == true
262
+ *
263
+ * // In a file (e.g. test.js):
264
+ * assert.ok(typeof 123 === 'string');
265
+ * // AssertionError: The expression evaluated to a falsy value:
266
+ * //
267
+ * // assert.ok(typeof 123 === 'string')
268
+ *
269
+ * assert.ok(false);
270
+ * // AssertionError: The expression evaluated to a falsy value:
271
+ * //
272
+ * // assert.ok(false)
273
+ *
274
+ * assert.ok(0);
275
+ * // AssertionError: The expression evaluated to a falsy value:
276
+ * //
277
+ * // assert.ok(0)
278
+ * ```
279
+ *
280
+ * ```js
281
+ * import assert from 'node:assert/strict';
282
+ *
283
+ * // Using `assert()` works the same:
284
+ * assert(0);
285
+ * // AssertionError: The expression evaluated to a falsy value:
286
+ * //
287
+ * // assert(0)
288
+ * ```
289
+ * @since v0.1.21
290
+ */
291
+ function ok(value: unknown, message?: string | Error): asserts value;
292
+ /**
293
+ * **Strict assertion mode**
294
+ *
295
+ * An alias of {@link strictEqual}.
296
+ *
297
+ * **Legacy assertion mode**
298
+ *
299
+ * > Stability: 3 - Legacy: Use {@link strictEqual} instead.
300
+ *
301
+ * Tests shallow, coercive equality between the `actual` and `expected` parameters
302
+ * using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled
303
+ * and treated as being identical if both sides are `NaN`.
304
+ *
305
+ * ```js
306
+ * import assert from 'node:assert';
307
+ *
308
+ * assert.equal(1, 1);
309
+ * // OK, 1 == 1
310
+ * assert.equal(1, '1');
311
+ * // OK, 1 == '1'
312
+ * assert.equal(NaN, NaN);
313
+ * // OK
314
+ *
315
+ * assert.equal(1, 2);
316
+ * // AssertionError: 1 == 2
317
+ * assert.equal({ a: { b: 1 } }, { a: { b: 1 } });
318
+ * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
319
+ * ```
320
+ *
321
+ * If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
322
+ * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
323
+ * @since v0.1.21
324
+ */
325
+ function equal(actual: unknown, expected: unknown, message?: string | Error): void;
326
+ /**
327
+ * **Strict assertion mode**
328
+ *
329
+ * An alias of {@link notStrictEqual}.
330
+ *
331
+ * **Legacy assertion mode**
332
+ *
333
+ * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead.
334
+ *
335
+ * Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is
336
+ * specially handled and treated as being identical if both sides are `NaN`.
337
+ *
338
+ * ```js
339
+ * import assert from 'node:assert';
340
+ *
341
+ * assert.notEqual(1, 2);
342
+ * // OK
343
+ *
344
+ * assert.notEqual(1, 1);
345
+ * // AssertionError: 1 != 1
346
+ *
347
+ * assert.notEqual(1, '1');
348
+ * // AssertionError: 1 != '1'
349
+ * ```
350
+ *
351
+ * If the values are equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error
352
+ * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
353
+ * @since v0.1.21
354
+ */
355
+ function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
356
+ /**
357
+ * **Strict assertion mode**
358
+ *
359
+ * An alias of {@link deepStrictEqual}.
360
+ *
361
+ * **Legacy assertion mode**
362
+ *
363
+ * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead.
364
+ *
365
+ * Tests for deep equality between the `actual` and `expected` parameters. Consider
366
+ * using {@link deepStrictEqual} instead. {@link deepEqual} can have
367
+ * surprising results.
368
+ *
369
+ * _Deep equality_ means that the enumerable "own" properties of child objects
370
+ * are also recursively evaluated by the following rules.
371
+ * @since v0.1.21
372
+ */
373
+ function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
374
+ /**
375
+ * **Strict assertion mode**
376
+ *
377
+ * An alias of {@link notDeepStrictEqual}.
378
+ *
379
+ * **Legacy assertion mode**
380
+ *
381
+ * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead.
382
+ *
383
+ * Tests for any deep inequality. Opposite of {@link deepEqual}.
384
+ *
385
+ * ```js
386
+ * import assert from 'node:assert';
387
+ *
388
+ * const obj1 = {
389
+ * a: {
390
+ * b: 1,
391
+ * },
392
+ * };
393
+ * const obj2 = {
394
+ * a: {
395
+ * b: 2,
396
+ * },
397
+ * };
398
+ * const obj3 = {
399
+ * a: {
400
+ * b: 1,
401
+ * },
402
+ * };
403
+ * const obj4 = { __proto__: obj1 };
404
+ *
405
+ * assert.notDeepEqual(obj1, obj1);
406
+ * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
407
+ *
408
+ * assert.notDeepEqual(obj1, obj2);
409
+ * // OK
410
+ *
411
+ * assert.notDeepEqual(obj1, obj3);
412
+ * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
413
+ *
414
+ * assert.notDeepEqual(obj1, obj4);
415
+ * // OK
416
+ * ```
417
+ *
418
+ * If the values are deeply equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
419
+ * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
420
+ * instead of the `AssertionError`.
421
+ * @since v0.1.21
422
+ */
423
+ function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
424
+ /**
425
+ * Tests strict equality between the `actual` and `expected` parameters as
426
+ * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
427
+ *
428
+ * ```js
429
+ * import assert from 'node:assert/strict';
430
+ *
431
+ * assert.strictEqual(1, 2);
432
+ * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
433
+ * //
434
+ * // 1 !== 2
435
+ *
436
+ * assert.strictEqual(1, 1);
437
+ * // OK
438
+ *
439
+ * assert.strictEqual('Hello foobar', 'Hello World!');
440
+ * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
441
+ * // + actual - expected
442
+ * //
443
+ * // + 'Hello foobar'
444
+ * // - 'Hello World!'
445
+ * // ^
446
+ *
447
+ * const apples = 1;
448
+ * const oranges = 2;
449
+ * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`);
450
+ * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2
451
+ *
452
+ * assert.strictEqual(1, '1', new TypeError('Inputs are not identical'));
453
+ * // TypeError: Inputs are not identical
454
+ * ```
455
+ *
456
+ * If the values are not strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
457
+ * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
458
+ * instead of the `AssertionError`.
459
+ * @since v0.1.21
460
+ */
461
+ function strictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
462
+ /**
463
+ * Tests strict inequality between the `actual` and `expected` parameters as
464
+ * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
465
+ *
466
+ * ```js
467
+ * import assert from 'node:assert/strict';
468
+ *
469
+ * assert.notStrictEqual(1, 2);
470
+ * // OK
471
+ *
472
+ * assert.notStrictEqual(1, 1);
473
+ * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to:
474
+ * //
475
+ * // 1
476
+ *
477
+ * assert.notStrictEqual(1, '1');
478
+ * // OK
479
+ * ```
480
+ *
481
+ * If the values are strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
482
+ * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
483
+ * instead of the `AssertionError`.
484
+ * @since v0.1.21
485
+ */
486
+ function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
487
+ /**
488
+ * Tests for deep equality between the `actual` and `expected` parameters.
489
+ * "Deep" equality means that the enumerable "own" properties of child objects
490
+ * are recursively evaluated also by the following rules.
491
+ * @since v1.2.0
492
+ */
493
+ function deepStrictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
494
+ /**
495
+ * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}.
496
+ *
497
+ * ```js
498
+ * import assert from 'node:assert/strict';
499
+ *
500
+ * assert.notDeepStrictEqual({ a: 1 }, { a: '1' });
501
+ * // OK
502
+ * ```
503
+ *
504
+ * If the values are deeply and strictly equal, an `AssertionError` is thrown
505
+ * with a `message` property set equal to the value of the `message` parameter. If
506
+ * the `message` parameter is undefined, a default error message is assigned. If
507
+ * the `message` parameter is an instance of an `Error` then it will be thrown
508
+ * instead of the `AssertionError`.
509
+ * @since v1.2.0
510
+ */
511
+ function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
512
+ /**
513
+ * Expects the function `fn` to throw an error.
514
+ *
515
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
516
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
517
+ * a validation object where each property will be tested for strict deep equality,
518
+ * or an instance of error where each property will be tested for strict deep
519
+ * equality including the non-enumerable `message` and `name` properties. When
520
+ * using an object, it is also possible to use a regular expression, when
521
+ * validating against a string property. See below for examples.
522
+ *
523
+ * If specified, `message` will be appended to the message provided by the `AssertionError` if the `fn` call fails to throw or in case the error validation
524
+ * fails.
525
+ *
526
+ * Custom validation object/error instance:
527
+ *
528
+ * ```js
529
+ * import assert from 'node:assert/strict';
530
+ *
531
+ * const err = new TypeError('Wrong value');
532
+ * err.code = 404;
533
+ * err.foo = 'bar';
534
+ * err.info = {
535
+ * nested: true,
536
+ * baz: 'text',
537
+ * };
538
+ * err.reg = /abc/i;
539
+ *
540
+ * assert.throws(
541
+ * () => {
542
+ * throw err;
543
+ * },
544
+ * {
545
+ * name: 'TypeError',
546
+ * message: 'Wrong value',
547
+ * info: {
548
+ * nested: true,
549
+ * baz: 'text',
550
+ * },
551
+ * // Only properties on the validation object will be tested for.
552
+ * // Using nested objects requires all properties to be present. Otherwise
553
+ * // the validation is going to fail.
554
+ * },
555
+ * );
556
+ *
557
+ * // Using regular expressions to validate error properties:
558
+ * assert.throws(
559
+ * () => {
560
+ * throw err;
561
+ * },
562
+ * {
563
+ * // The `name` and `message` properties are strings and using regular
564
+ * // expressions on those will match against the string. If they fail, an
565
+ * // error is thrown.
566
+ * name: /^TypeError$/,
567
+ * message: /Wrong/,
568
+ * foo: 'bar',
569
+ * info: {
570
+ * nested: true,
571
+ * // It is not possible to use regular expressions for nested properties!
572
+ * baz: 'text',
573
+ * },
574
+ * // The `reg` property contains a regular expression and only if the
575
+ * // validation object contains an identical regular expression, it is going
576
+ * // to pass.
577
+ * reg: /abc/i,
578
+ * },
579
+ * );
580
+ *
581
+ * // Fails due to the different `message` and `name` properties:
582
+ * assert.throws(
583
+ * () => {
584
+ * const otherErr = new Error('Not found');
585
+ * // Copy all enumerable properties from `err` to `otherErr`.
586
+ * for (const [key, value] of Object.entries(err)) {
587
+ * otherErr[key] = value;
588
+ * }
589
+ * throw otherErr;
590
+ * },
591
+ * // The error's `message` and `name` properties will also be checked when using
592
+ * // an error as validation object.
593
+ * err,
594
+ * );
595
+ * ```
596
+ *
597
+ * Validate instanceof using constructor:
598
+ *
599
+ * ```js
600
+ * import assert from 'node:assert/strict';
601
+ *
602
+ * assert.throws(
603
+ * () => {
604
+ * throw new Error('Wrong value');
605
+ * },
606
+ * Error,
607
+ * );
608
+ * ```
609
+ *
610
+ * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions):
611
+ *
612
+ * Using a regular expression runs `.toString` on the error object, and will
613
+ * therefore also include the error name.
614
+ *
615
+ * ```js
616
+ * import assert from 'node:assert/strict';
617
+ *
618
+ * assert.throws(
619
+ * () => {
620
+ * throw new Error('Wrong value');
621
+ * },
622
+ * /^Error: Wrong value$/,
623
+ * );
624
+ * ```
625
+ *
626
+ * Custom error validation:
627
+ *
628
+ * The function must return `true` to indicate all internal validations passed.
629
+ * It will otherwise fail with an `AssertionError`.
630
+ *
631
+ * ```js
632
+ * import assert from 'node:assert/strict';
633
+ *
634
+ * assert.throws(
635
+ * () => {
636
+ * throw new Error('Wrong value');
637
+ * },
638
+ * (err) => {
639
+ * assert(err instanceof Error);
640
+ * assert(/value/.test(err));
641
+ * // Avoid returning anything from validation functions besides `true`.
642
+ * // Otherwise, it's not clear what part of the validation failed. Instead,
643
+ * // throw an error about the specific validation that failed (as done in this
644
+ * // example) and add as much helpful debugging information to that error as
645
+ * // possible.
646
+ * return true;
647
+ * },
648
+ * 'unexpected error',
649
+ * );
650
+ * ```
651
+ *
652
+ * `error` cannot be a string. If a string is provided as the second
653
+ * argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Using the same
654
+ * message as the thrown error message is going to result in an `ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
655
+ * a string as the second argument gets considered:
656
+ *
657
+ * ```js
658
+ * import assert from 'node:assert/strict';
659
+ *
660
+ * function throwingFirst() {
661
+ * throw new Error('First');
662
+ * }
663
+ *
664
+ * function throwingSecond() {
665
+ * throw new Error('Second');
666
+ * }
667
+ *
668
+ * function notThrowing() {}
669
+ *
670
+ * // The second argument is a string and the input function threw an Error.
671
+ * // The first case will not throw as it does not match for the error message
672
+ * // thrown by the input function!
673
+ * assert.throws(throwingFirst, 'Second');
674
+ * // In the next example the message has no benefit over the message from the
675
+ * // error and since it is not clear if the user intended to actually match
676
+ * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error.
677
+ * assert.throws(throwingSecond, 'Second');
678
+ * // TypeError [ERR_AMBIGUOUS_ARGUMENT]
679
+ *
680
+ * // The string is only used (as message) in case the function does not throw:
681
+ * assert.throws(notThrowing, 'Second');
682
+ * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second
683
+ *
684
+ * // If it was intended to match for the error message do this instead:
685
+ * // It does not throw because the error messages match.
686
+ * assert.throws(throwingSecond, /Second$/);
687
+ *
688
+ * // If the error message does not match, an AssertionError is thrown.
689
+ * assert.throws(throwingFirst, /Second$/);
690
+ * // AssertionError [ERR_ASSERTION]
691
+ * ```
692
+ *
693
+ * Due to the confusing error-prone notation, avoid a string as the second
694
+ * argument.
695
+ * @since v0.1.21
696
+ */
697
+ function throws(block: () => unknown, message?: string | Error): void;
698
+ function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
699
+ /**
700
+ * Asserts that the function `fn` does not throw an error.
701
+ *
702
+ * Using `assert.doesNotThrow()` is actually not useful because there
703
+ * is no benefit in catching an error and then rethrowing it. Instead, consider
704
+ * adding a comment next to the specific code path that should not throw and keep
705
+ * error messages as expressive as possible.
706
+ *
707
+ * When `assert.doesNotThrow()` is called, it will immediately call the `fn` function.
708
+ *
709
+ * If an error is thrown and it is the same type as that specified by the `error` parameter, then an `AssertionError` is thrown. If the error is of a
710
+ * different type, or if the `error` parameter is undefined, the error is
711
+ * propagated back to the caller.
712
+ *
713
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
714
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation
715
+ * function. See {@link throws} for more details.
716
+ *
717
+ * The following, for instance, will throw the `TypeError` because there is no
718
+ * matching error type in the assertion:
719
+ *
720
+ * ```js
721
+ * import assert from 'node:assert/strict';
722
+ *
723
+ * assert.doesNotThrow(
724
+ * () => {
725
+ * throw new TypeError('Wrong value');
726
+ * },
727
+ * SyntaxError,
728
+ * );
729
+ * ```
730
+ *
731
+ * However, the following will result in an `AssertionError` with the message
732
+ * 'Got unwanted exception...':
733
+ *
734
+ * ```js
735
+ * import assert from 'node:assert/strict';
736
+ *
737
+ * assert.doesNotThrow(
738
+ * () => {
739
+ * throw new TypeError('Wrong value');
740
+ * },
741
+ * TypeError,
742
+ * );
743
+ * ```
744
+ *
745
+ * If an `AssertionError` is thrown and a value is provided for the `message` parameter, the value of `message` will be appended to the `AssertionError` message:
746
+ *
747
+ * ```js
748
+ * import assert from 'node:assert/strict';
749
+ *
750
+ * assert.doesNotThrow(
751
+ * () => {
752
+ * throw new TypeError('Wrong value');
753
+ * },
754
+ * /Wrong value/,
755
+ * 'Whoops',
756
+ * );
757
+ * // Throws: AssertionError: Got unwanted exception: Whoops
758
+ * ```
759
+ * @since v0.1.21
760
+ */
761
+ function doesNotThrow(block: () => unknown, message?: string | Error): void;
762
+ function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
763
+ /**
764
+ * Throws `value` if `value` is not `undefined` or `null`. This is useful when
765
+ * testing the `error` argument in callbacks. The stack trace contains all frames
766
+ * from the error passed to `ifError()` including the potential new frames for `ifError()` itself.
767
+ *
768
+ * ```js
769
+ * import assert from 'node:assert/strict';
770
+ *
771
+ * assert.ifError(null);
772
+ * // OK
773
+ * assert.ifError(0);
774
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0
775
+ * assert.ifError('error');
776
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error'
777
+ * assert.ifError(new Error());
778
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error
779
+ *
780
+ * // Create some random error frames.
781
+ * let err;
782
+ * (function errorFrame() {
783
+ * err = new Error('test error');
784
+ * })();
785
+ *
786
+ * (function ifErrorFrame() {
787
+ * assert.ifError(err);
788
+ * })();
789
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
790
+ * // at ifErrorFrame
791
+ * // at errorFrame
792
+ * ```
793
+ * @since v0.1.97
794
+ */
795
+ function ifError(value: unknown): asserts value is null | undefined;
796
+ /**
797
+ * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
798
+ * calls the function and awaits the returned promise to complete. It will then
799
+ * check that the promise is rejected.
800
+ *
801
+ * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
802
+ * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v24.x/api/errors.html#err_invalid_return_value)
803
+ * error. In both cases the error handler is skipped.
804
+ *
805
+ * Besides the async nature to await the completion behaves identically to {@link throws}.
806
+ *
807
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
808
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
809
+ * an object where each property will be tested for, or an instance of error where
810
+ * each property will be tested for including the non-enumerable `message` and `name` properties.
811
+ *
812
+ * If specified, `message` will be the message provided by the `{@link AssertionError}` if the `asyncFn` fails to reject.
813
+ *
814
+ * ```js
815
+ * import assert from 'node:assert/strict';
816
+ *
817
+ * await assert.rejects(
818
+ * async () => {
819
+ * throw new TypeError('Wrong value');
820
+ * },
821
+ * {
822
+ * name: 'TypeError',
823
+ * message: 'Wrong value',
824
+ * },
825
+ * );
826
+ * ```
827
+ *
828
+ * ```js
829
+ * import assert from 'node:assert/strict';
830
+ *
831
+ * await assert.rejects(
832
+ * async () => {
833
+ * throw new TypeError('Wrong value');
834
+ * },
835
+ * (err) => {
836
+ * assert.strictEqual(err.name, 'TypeError');
837
+ * assert.strictEqual(err.message, 'Wrong value');
838
+ * return true;
839
+ * },
840
+ * );
841
+ * ```
842
+ *
843
+ * ```js
844
+ * import assert from 'node:assert/strict';
845
+ *
846
+ * assert.rejects(
847
+ * Promise.reject(new Error('Wrong value')),
848
+ * Error,
849
+ * ).then(() => {
850
+ * // ...
851
+ * });
852
+ * ```
853
+ *
854
+ * `error` cannot be a string. If a string is provided as the second argument, then `error` is assumed to
855
+ * be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Please read the
856
+ * example in {@link throws} carefully if using a string as the second argument gets considered.
857
+ * @since v10.0.0
858
+ */
859
+ function rejects(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
860
+ function rejects(
861
+ block: (() => Promise<unknown>) | Promise<unknown>,
862
+ error: AssertPredicate,
863
+ message?: string | Error,
864
+ ): Promise<void>;
865
+ /**
866
+ * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
867
+ * calls the function and awaits the returned promise to complete. It will then
868
+ * check that the promise is not rejected.
869
+ *
870
+ * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
871
+ * the function does not return a promise, `assert.doesNotReject()` will return a
872
+ * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v24.x/api/errors.html#err_invalid_return_value) error. In both cases
873
+ * the error handler is skipped.
874
+ *
875
+ * Using `assert.doesNotReject()` is actually not useful because there is little
876
+ * benefit in catching a rejection and then rejecting it again. Instead, consider
877
+ * adding a comment next to the specific code path that should not reject and keep
878
+ * error messages as expressive as possible.
879
+ *
880
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
881
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation
882
+ * function. See {@link throws} for more details.
883
+ *
884
+ * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}.
885
+ *
886
+ * ```js
887
+ * import assert from 'node:assert/strict';
888
+ *
889
+ * await assert.doesNotReject(
890
+ * async () => {
891
+ * throw new TypeError('Wrong value');
892
+ * },
893
+ * SyntaxError,
894
+ * );
895
+ * ```
896
+ *
897
+ * ```js
898
+ * import assert from 'node:assert/strict';
899
+ *
900
+ * assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
901
+ * .then(() => {
902
+ * // ...
903
+ * });
904
+ * ```
905
+ * @since v10.0.0
906
+ */
907
+ function doesNotReject(
908
+ block: (() => Promise<unknown>) | Promise<unknown>,
909
+ message?: string | Error,
910
+ ): Promise<void>;
911
+ function doesNotReject(
912
+ block: (() => Promise<unknown>) | Promise<unknown>,
913
+ error: AssertPredicate,
914
+ message?: string | Error,
915
+ ): Promise<void>;
916
+ /**
917
+ * Expects the `string` input to match the regular expression.
918
+ *
919
+ * ```js
920
+ * import assert from 'node:assert/strict';
921
+ *
922
+ * assert.match('I will fail', /pass/);
923
+ * // AssertionError [ERR_ASSERTION]: The input did not match the regular ...
924
+ *
925
+ * assert.match(123, /pass/);
926
+ * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
927
+ *
928
+ * assert.match('I will pass', /pass/);
929
+ * // OK
930
+ * ```
931
+ *
932
+ * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
933
+ * to the value of the `message` parameter. If the `message` parameter is
934
+ * undefined, a default error message is assigned. If the `message` parameter is an
935
+ * instance of an [Error](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
936
+ * @since v13.6.0, v12.16.0
937
+ */
938
+ function match(value: string, regExp: RegExp, message?: string | Error): void;
939
+ /**
940
+ * Expects the `string` input not to match the regular expression.
941
+ *
942
+ * ```js
943
+ * import assert from 'node:assert/strict';
944
+ *
945
+ * assert.doesNotMatch('I will fail', /fail/);
946
+ * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ...
947
+ *
948
+ * assert.doesNotMatch(123, /pass/);
949
+ * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
950
+ *
951
+ * assert.doesNotMatch('I will pass', /different/);
952
+ * // OK
953
+ * ```
954
+ *
955
+ * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
956
+ * to the value of the `message` parameter. If the `message` parameter is
957
+ * undefined, a default error message is assigned. If the `message` parameter is an
958
+ * instance of an [Error](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
959
+ * @since v13.6.0, v12.16.0
960
+ */
961
+ function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
962
+ /**
963
+ * Tests for partial deep equality between the `actual` and `expected` parameters.
964
+ * "Deep" equality means that the enumerable "own" properties of child objects
965
+ * are recursively evaluated also by the following rules. "Partial" equality means
966
+ * that only properties that exist on the `expected` parameter are going to be
967
+ * compared.
968
+ *
969
+ * This method always passes the same test cases as `assert.deepStrictEqual()`,
970
+ * behaving as a super set of it.
971
+ * @since v22.13.0
972
+ */
973
+ function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
974
+ /**
975
+ * In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example,
976
+ * {@link deepEqual} will behave like {@link deepStrictEqual}.
977
+ *
978
+ * In strict assertion mode, error messages for objects display a diff. In legacy assertion mode, error
979
+ * messages for objects display the objects, often truncated.
980
+ *
981
+ * To use strict assertion mode:
982
+ *
983
+ * ```js
984
+ * import { strict as assert } from 'node:assert';
985
+ * import assert from 'node:assert/strict';
986
+ * ```
987
+ *
988
+ * Example error diff:
989
+ *
990
+ * ```js
991
+ * import { strict as assert } from 'node:assert';
992
+ *
993
+ * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
994
+ * // AssertionError: Expected inputs to be strictly deep-equal:
995
+ * // + actual - expected ... Lines skipped
996
+ * //
997
+ * // [
998
+ * // [
999
+ * // ...
1000
+ * // 2,
1001
+ * // + 3
1002
+ * // - '3'
1003
+ * // ],
1004
+ * // ...
1005
+ * // 5
1006
+ * // ]
1007
+ * ```
1008
+ *
1009
+ * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS` environment variables. This will also
1010
+ * deactivate the colors in the REPL. For more on color support in terminal environments, read the tty
1011
+ * `getColorDepth()` documentation.
1012
+ *
1013
+ * @since v15.0.0, v13.9.0, v12.16.2, v9.9.0
1014
+ */
1015
+ namespace strict {
1016
+ type AssertionError = assert.AssertionError;
1017
+ type AssertPredicate = assert.AssertPredicate;
1018
+ type CallTrackerCall = assert.CallTrackerCall;
1019
+ type CallTrackerReportInformation = assert.CallTrackerReportInformation;
1020
+ }
1021
+ const strict:
1022
+ & Omit<
1023
+ typeof assert,
1024
+ | "equal"
1025
+ | "notEqual"
1026
+ | "deepEqual"
1027
+ | "notDeepEqual"
1028
+ | "ok"
1029
+ | "strictEqual"
1030
+ | "deepStrictEqual"
1031
+ | "ifError"
1032
+ | "strict"
1033
+ | "AssertionError"
1034
+ >
1035
+ & {
1036
+ (value: unknown, message?: string | Error): asserts value;
1037
+ equal: typeof strictEqual;
1038
+ notEqual: typeof notStrictEqual;
1039
+ deepEqual: typeof deepStrictEqual;
1040
+ notDeepEqual: typeof notDeepStrictEqual;
1041
+ // Mapped types and assertion functions are incompatible?
1042
+ // TS2775: Assertions require every name in the call target
1043
+ // to be declared with an explicit type annotation.
1044
+ ok: typeof ok;
1045
+ strictEqual: typeof strictEqual;
1046
+ deepStrictEqual: typeof deepStrictEqual;
1047
+ ifError: typeof ifError;
1048
+ strict: typeof strict;
1049
+ AssertionError: typeof AssertionError;
1050
+ };
1051
+ }
1052
+ export = assert;
1053
+ }