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

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 (134) hide show
  1. package/README.md +1 -1
  2. package/assert/strict.d.ts +113 -1
  3. package/assert.d.ts +162 -248
  4. package/async_hooks.d.ts +20 -5
  5. package/buffer.buffer.d.ts +24 -6
  6. package/buffer.d.ts +63 -168
  7. package/child_process.d.ts +117 -223
  8. package/cluster.d.ts +251 -329
  9. package/compatibility/iterators.d.ts +15 -0
  10. package/console.d.ts +60 -346
  11. package/constants.d.ts +15 -1
  12. package/crypto.d.ts +713 -1149
  13. package/dgram.d.ts +30 -50
  14. package/diagnostics_channel.d.ts +16 -3
  15. package/dns/promises.d.ts +15 -0
  16. package/dns.d.ts +150 -131
  17. package/domain.d.ts +25 -14
  18. package/events.d.ts +858 -719
  19. package/fs/promises.d.ts +117 -53
  20. package/fs.d.ts +729 -484
  21. package/globals.d.ts +142 -344
  22. package/globals.typedarray.d.ts +94 -0
  23. package/http.d.ts +358 -246
  24. package/http2.d.ts +578 -711
  25. package/https.d.ts +85 -216
  26. package/index.d.ts +39 -3
  27. package/inspector/promises.d.ts +54 -0
  28. package/inspector.d.ts +180 -3936
  29. package/inspector.generated.d.ts +4242 -0
  30. package/module.d.ts +60 -95
  31. package/my-shim.d.ts +15 -0
  32. package/net.d.ts +102 -186
  33. package/os.d.ts +32 -6
  34. package/package.json +3 -8
  35. package/path/posix.d.ts +20 -0
  36. package/path/win32.d.ts +20 -0
  37. package/path.d.ts +132 -122
  38. package/perf_hooks.d.ts +310 -644
  39. package/process.d.ts +192 -138
  40. package/punycode.d.ts +17 -2
  41. package/querystring.d.ts +16 -1
  42. package/quic.d.ts +926 -0
  43. package/readline/promises.d.ts +16 -1
  44. package/readline.d.ts +80 -118
  45. package/repl.d.ts +98 -96
  46. package/sea.d.ts +25 -1
  47. package/sqlite.d.ts +277 -13
  48. package/stream/consumers.d.ts +22 -7
  49. package/stream/promises.d.ts +148 -12
  50. package/stream/web.d.ts +187 -494
  51. package/stream.d.ts +608 -490
  52. package/string_decoder.d.ts +18 -3
  53. package/test/reporters.d.ts +112 -0
  54. package/test.d.ts +238 -199
  55. package/timers/promises.d.ts +16 -1
  56. package/timers.d.ts +16 -129
  57. package/tls.d.ts +163 -163
  58. package/trace_events.d.ts +21 -6
  59. package/ts5.6/buffer.buffer.d.ts +25 -8
  60. package/ts5.6/compatibility/float16array.d.ts +15 -0
  61. package/ts5.6/globals.typedarray.d.ts +31 -0
  62. package/ts5.6/index.d.ts +39 -3
  63. package/ts5.7/compatibility/float16array.d.ts +15 -0
  64. package/ts5.7/index.d.ts +39 -3
  65. package/tty.d.ts +70 -13
  66. package/undici-types/agent.d.ts +20 -4
  67. package/undici-types/api.d.ts +15 -0
  68. package/undici-types/balanced-pool.d.ts +15 -0
  69. package/undici-types/cache-interceptor.d.ts +15 -0
  70. package/undici-types/cache.d.ts +15 -0
  71. package/undici-types/client-stats.d.ts +31 -0
  72. package/undici-types/client.d.ts +21 -5
  73. package/undici-types/connector.d.ts +15 -0
  74. package/undici-types/content-type.d.ts +15 -0
  75. package/undici-types/cookies.d.ts +15 -0
  76. package/undici-types/diagnostics-channel.d.ts +24 -1
  77. package/undici-types/dispatcher.d.ts +18 -8
  78. package/undici-types/env-http-proxy-agent.d.ts +17 -1
  79. package/undici-types/errors.d.ts +20 -15
  80. package/undici-types/eventsource.d.ts +24 -4
  81. package/undici-types/fetch.d.ts +16 -0
  82. package/undici-types/formdata.d.ts +15 -0
  83. package/undici-types/global-dispatcher.d.ts +15 -0
  84. package/undici-types/global-origin.d.ts +15 -0
  85. package/undici-types/h2c-client.d.ts +15 -2
  86. package/undici-types/handlers.d.ts +16 -1
  87. package/undici-types/header.d.ts +15 -0
  88. package/undici-types/index.d.ts +21 -1
  89. package/undici-types/interceptors.d.ts +20 -0
  90. package/undici-types/mock-agent.d.ts +18 -0
  91. package/undici-types/mock-call-history.d.ts +15 -0
  92. package/undici-types/mock-client.d.ts +17 -0
  93. package/undici-types/mock-errors.d.ts +15 -0
  94. package/undici-types/mock-interceptor.d.ts +17 -1
  95. package/undici-types/mock-pool.d.ts +17 -0
  96. package/undici-types/package.json +1 -1
  97. package/undici-types/patch.d.ts +15 -0
  98. package/undici-types/pool-stats.d.ts +15 -0
  99. package/undici-types/pool.d.ts +17 -0
  100. package/undici-types/proxy-agent.d.ts +16 -0
  101. package/undici-types/readable.d.ts +15 -0
  102. package/undici-types/retry-agent.d.ts +15 -0
  103. package/undici-types/retry-handler.d.ts +24 -0
  104. package/undici-types/snapshot-agent.d.ts +125 -0
  105. package/undici-types/util.d.ts +15 -0
  106. package/undici-types/utility.d.ts +15 -0
  107. package/undici-types/webidl.d.ts +126 -36
  108. package/undici-types/websocket.d.ts +18 -1
  109. package/url.d.ts +107 -587
  110. package/util/types.d.ts +571 -0
  111. package/util.d.ts +158 -792
  112. package/v8.d.ts +82 -7
  113. package/vm.d.ts +267 -108
  114. package/wasi.d.ts +38 -2
  115. package/web-globals/abortcontroller.d.ts +75 -0
  116. package/web-globals/blob.d.ts +39 -0
  117. package/web-globals/console.d.ts +25 -0
  118. package/web-globals/crypto.d.ts +55 -0
  119. package/web-globals/domexception.d.ts +84 -0
  120. package/web-globals/encoding.d.ts +27 -0
  121. package/{dom-events.d.ts → web-globals/events.d.ts} +72 -50
  122. package/web-globals/fetch.d.ts +70 -0
  123. package/web-globals/importmeta.d.ts +29 -0
  124. package/web-globals/messaging.d.ts +39 -0
  125. package/web-globals/navigator.d.ts +41 -0
  126. package/web-globals/performance.d.ts +61 -0
  127. package/web-globals/storage.d.ts +40 -0
  128. package/web-globals/streams.d.ts +131 -0
  129. package/web-globals/timers.d.ts +60 -0
  130. package/web-globals/url.d.ts +40 -0
  131. package/worker_threads.d.ts +306 -349
  132. package/zlib.d.ts +59 -94
  133. package/ts5.1/compatibility/disposable.d.ts +0 -13
  134. package/ts5.1/index.d.ts +0 -100
package/trace_events.d.ts CHANGED
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  /**
2
17
  * The `node:trace_events` module provides a mechanism to centralize tracing information
3
18
  * generated by V8, Node.js core, and userspace code.
@@ -9,8 +24,8 @@
9
24
  * The available categories are:
10
25
  *
11
26
  * * `node`: An empty placeholder.
12
- * * `node.async_hooks`: Enables capture of detailed [`async_hooks`](https://nodejs.org/docs/latest-v24.x/api/async_hooks.html) trace data.
13
- * The [`async_hooks`](https://nodejs.org/docs/latest-v24.x/api/async_hooks.html) events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property.
27
+ * * `node.async_hooks`: Enables capture of detailed [`async_hooks`](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html) trace data.
28
+ * The [`async_hooks`](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html) events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property.
14
29
  * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones.
15
30
  * * `node.console`: Enables capture of `console.time()` and `console.count()` output.
16
31
  * * `node.threadpoolwork.sync`: Enables capture of trace data for threadpool synchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`.
@@ -22,7 +37,7 @@
22
37
  * * `node.fs_dir.sync`: Enables capture of trace data for file system sync directory methods.
23
38
  * * `node.fs.async`: Enables capture of trace data for file system async methods.
24
39
  * * `node.fs_dir.async`: Enables capture of trace data for file system async directory methods.
25
- * * `node.perf`: Enables capture of [Performance API](https://nodejs.org/docs/latest-v24.x/api/perf_hooks.html) measurements.
40
+ * * `node.perf`: Enables capture of [Performance API](https://nodejs.org/docs/latest-v25.x/api/perf_hooks.html) measurements.
26
41
  * * `node.perf.usertiming`: Enables capture of only Performance API User Timing
27
42
  * measures and marks.
28
43
  * * `node.perf.timerify`: Enables capture of only Performance API timerify
@@ -30,7 +45,7 @@
30
45
  * * `node.promises.rejections`: Enables capture of trace data tracking the number
31
46
  * of unhandled Promise rejections and handled-after-rejections.
32
47
  * * `node.vm.script`: Enables capture of trace data for the `node:vm` module's `runInNewContext()`, `runInContext()`, and `runInThisContext()` methods.
33
- * * `v8`: The [V8](https://nodejs.org/docs/latest-v24.x/api/v8.html) events are GC, compiling, and execution related.
48
+ * * `v8`: The [V8](https://nodejs.org/docs/latest-v25.x/api/v8.html) events are GC, compiling, and execution related.
34
49
  * * `node.http`: Enables capture of trace data for http request / response.
35
50
  *
36
51
  * By default the `node`, `node.async_hooks`, and `v8` categories are enabled.
@@ -88,9 +103,9 @@
88
103
  * However the trace-event timestamps are expressed in microseconds,
89
104
  * unlike `process.hrtime()` which returns nanoseconds.
90
105
  *
91
- * The features from this module are not available in [`Worker`](https://nodejs.org/docs/latest-v24.x/api/worker_threads.html#class-worker) threads.
106
+ * The features from this module are not available in [`Worker`](https://nodejs.org/docs/latest-v25.x/api/worker_threads.html#class-worker) threads.
92
107
  * @experimental
93
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/trace_events.js)
108
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/trace_events.js)
94
109
  */
95
110
 
96
111
  declare module "node:trace_events" {
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
 
2
17
  declare module "node:buffer" {
3
18
  global {
@@ -33,7 +48,7 @@ declare module "node:buffer" {
33
48
  * @param arrayBuffer The ArrayBuffer with which to share memory.
34
49
  * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
35
50
  */
36
- new(arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
51
+ new(arrayBuffer: ArrayBufferLike): Buffer;
37
52
  /**
38
53
  * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
39
54
  * Array entries outside that range will be truncated to fit into it.
@@ -127,7 +142,7 @@ declare module "node:buffer" {
127
142
  * `arrayBuffer.byteLength - byteOffset`.
128
143
  */
129
144
  from(
130
- arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>,
145
+ arrayBuffer: WithImplicitCoercion<ArrayBufferLike>,
131
146
  byteOffset?: number,
132
147
  length?: number,
133
148
  ): Buffer;
@@ -449,13 +464,15 @@ declare module "node:buffer" {
449
464
  */
450
465
  subarray(start?: number, end?: number): Buffer;
451
466
  }
467
+ /**
468
+ * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
469
+ * TypeScript versions earlier than 5.7.
470
+ */
452
471
  type NonSharedBuffer = Buffer;
472
+ /**
473
+ * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
474
+ * TypeScript versions earlier than 5.7.
475
+ */
453
476
  type AllowSharedBuffer = Buffer;
454
477
  }
455
- /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
456
- var SlowBuffer: {
457
- /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
458
- new(size: number): Buffer;
459
- prototype: Buffer;
460
- };
461
478
  }
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  // Interface declaration for Float16Array, required in @types/node v24+.
2
17
  // These definitions are specific to TS <=5.6.
3
18
 
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  export {}; // Make this a module
2
17
 
3
18
  declare global {
@@ -16,6 +31,22 @@ declare global {
16
31
  | Float32Array
17
32
  | Float64Array;
18
33
  type ArrayBufferView = TypedArray | DataView;
34
+
35
+ type NonSharedUint8Array = Uint8Array;
36
+ type NonSharedUint8ClampedArray = Uint8ClampedArray;
37
+ type NonSharedUint16Array = Uint16Array;
38
+ type NonSharedUint32Array = Uint32Array;
39
+ type NonSharedInt8Array = Int8Array;
40
+ type NonSharedInt16Array = Int16Array;
41
+ type NonSharedInt32Array = Int32Array;
42
+ type NonSharedBigUint64Array = BigUint64Array;
43
+ type NonSharedBigInt64Array = BigInt64Array;
44
+ type NonSharedFloat16Array = Float16Array;
45
+ type NonSharedFloat32Array = Float32Array;
46
+ type NonSharedFloat64Array = Float64Array;
47
+ type NonSharedDataView = DataView;
48
+ type NonSharedTypedArray = TypedArray;
49
+ type NonSharedArrayBufferView = ArrayBufferView;
19
50
  }
20
51
  }
21
52
 
package/ts5.6/index.d.ts CHANGED
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  /**
2
17
  * License for programmatically and manually incorporated
3
18
  * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
@@ -40,6 +55,22 @@
40
55
 
41
56
  // Definitions for Node.js modules that are not specific to any version of TypeScript:
42
57
  /// <reference path="../globals.d.ts" />
58
+ /// <reference path="../web-globals/abortcontroller.d.ts" />
59
+ /// <reference path="../web-globals/blob.d.ts" />
60
+ /// <reference path="../web-globals/console.d.ts" />
61
+ /// <reference path="../web-globals/crypto.d.ts" />
62
+ /// <reference path="../web-globals/domexception.d.ts" />
63
+ /// <reference path="../web-globals/encoding.d.ts" />
64
+ /// <reference path="../web-globals/events.d.ts" />
65
+ /// <reference path="../web-globals/fetch.d.ts" />
66
+ /// <reference path="../web-globals/importmeta.d.ts" />
67
+ /// <reference path="../web-globals/messaging.d.ts" />
68
+ /// <reference path="../web-globals/navigator.d.ts" />
69
+ /// <reference path="../web-globals/performance.d.ts" />
70
+ /// <reference path="../web-globals/storage.d.ts" />
71
+ /// <reference path="../web-globals/streams.d.ts" />
72
+ /// <reference path="../web-globals/timers.d.ts" />
73
+ /// <reference path="../web-globals/url.d.ts" />
43
74
  /// <reference path="../assert.d.ts" />
44
75
  /// <reference path="../assert/strict.d.ts" />
45
76
  /// <reference path="../async_hooks.d.ts" />
@@ -53,9 +84,7 @@
53
84
  /// <reference path="../diagnostics_channel.d.ts" />
54
85
  /// <reference path="../dns.d.ts" />
55
86
  /// <reference path="../dns/promises.d.ts" />
56
- /// <reference path="../dns/promises.d.ts" />
57
87
  /// <reference path="../domain.d.ts" />
58
- /// <reference path="../dom-events.d.ts" />
59
88
  /// <reference path="../events.d.ts" />
60
89
  /// <reference path="../fs.d.ts" />
61
90
  /// <reference path="../fs/promises.d.ts" />
@@ -63,25 +92,31 @@
63
92
  /// <reference path="../http2.d.ts" />
64
93
  /// <reference path="../https.d.ts" />
65
94
  /// <reference path="../inspector.d.ts" />
95
+ /// <reference path="../inspector.generated.d.ts" />
96
+ /// <reference path="../inspector/promises.d.ts" />
66
97
  /// <reference path="../module.d.ts" />
67
98
  /// <reference path="../net.d.ts" />
68
99
  /// <reference path="../os.d.ts" />
69
100
  /// <reference path="../path.d.ts" />
101
+ /// <reference path="../path/posix.d.ts" />
102
+ /// <reference path="../path/win32.d.ts" />
70
103
  /// <reference path="../perf_hooks.d.ts" />
71
104
  /// <reference path="../process.d.ts" />
72
105
  /// <reference path="../punycode.d.ts" />
73
106
  /// <reference path="../querystring.d.ts" />
107
+ /// <reference path="../quic.d.ts" />
74
108
  /// <reference path="../readline.d.ts" />
75
109
  /// <reference path="../readline/promises.d.ts" />
76
110
  /// <reference path="../repl.d.ts" />
77
111
  /// <reference path="../sea.d.ts" />
78
112
  /// <reference path="../sqlite.d.ts" />
79
113
  /// <reference path="../stream.d.ts" />
80
- /// <reference path="../stream/promises.d.ts" />
81
114
  /// <reference path="../stream/consumers.d.ts" />
115
+ /// <reference path="../stream/promises.d.ts" />
82
116
  /// <reference path="../stream/web.d.ts" />
83
117
  /// <reference path="../string_decoder.d.ts" />
84
118
  /// <reference path="../test.d.ts" />
119
+ /// <reference path="../test/reporters.d.ts" />
85
120
  /// <reference path="../timers.d.ts" />
86
121
  /// <reference path="../timers/promises.d.ts" />
87
122
  /// <reference path="../tls.d.ts" />
@@ -89,6 +124,7 @@
89
124
  /// <reference path="../tty.d.ts" />
90
125
  /// <reference path="../url.d.ts" />
91
126
  /// <reference path="../util.d.ts" />
127
+ /// <reference path="../util/types.d.ts" />
92
128
  /// <reference path="../v8.d.ts" />
93
129
  /// <reference path="../vm.d.ts" />
94
130
  /// <reference path="../wasi.d.ts" />
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  // Interface declaration for Float16Array, required in @types/node v24+.
2
17
  // These definitions are specific to TS 5.7.
3
18
 
package/ts5.7/index.d.ts CHANGED
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  /**
2
17
  * License for programmatically and manually incorporated
3
18
  * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
@@ -40,6 +55,22 @@
40
55
 
41
56
  // Definitions for Node.js modules that are not specific to any version of TypeScript:
42
57
  /// <reference path="../globals.d.ts" />
58
+ /// <reference path="../web-globals/abortcontroller.d.ts" />
59
+ /// <reference path="../web-globals/blob.d.ts" />
60
+ /// <reference path="../web-globals/console.d.ts" />
61
+ /// <reference path="../web-globals/crypto.d.ts" />
62
+ /// <reference path="../web-globals/domexception.d.ts" />
63
+ /// <reference path="../web-globals/encoding.d.ts" />
64
+ /// <reference path="../web-globals/events.d.ts" />
65
+ /// <reference path="../web-globals/fetch.d.ts" />
66
+ /// <reference path="../web-globals/importmeta.d.ts" />
67
+ /// <reference path="../web-globals/messaging.d.ts" />
68
+ /// <reference path="../web-globals/navigator.d.ts" />
69
+ /// <reference path="../web-globals/performance.d.ts" />
70
+ /// <reference path="../web-globals/storage.d.ts" />
71
+ /// <reference path="../web-globals/streams.d.ts" />
72
+ /// <reference path="../web-globals/timers.d.ts" />
73
+ /// <reference path="../web-globals/url.d.ts" />
43
74
  /// <reference path="../assert.d.ts" />
44
75
  /// <reference path="../assert/strict.d.ts" />
45
76
  /// <reference path="../async_hooks.d.ts" />
@@ -53,9 +84,7 @@
53
84
  /// <reference path="../diagnostics_channel.d.ts" />
54
85
  /// <reference path="../dns.d.ts" />
55
86
  /// <reference path="../dns/promises.d.ts" />
56
- /// <reference path="../dns/promises.d.ts" />
57
87
  /// <reference path="../domain.d.ts" />
58
- /// <reference path="../dom-events.d.ts" />
59
88
  /// <reference path="../events.d.ts" />
60
89
  /// <reference path="../fs.d.ts" />
61
90
  /// <reference path="../fs/promises.d.ts" />
@@ -63,25 +92,31 @@
63
92
  /// <reference path="../http2.d.ts" />
64
93
  /// <reference path="../https.d.ts" />
65
94
  /// <reference path="../inspector.d.ts" />
95
+ /// <reference path="../inspector.generated.d.ts" />
96
+ /// <reference path="../inspector/promises.d.ts" />
66
97
  /// <reference path="../module.d.ts" />
67
98
  /// <reference path="../net.d.ts" />
68
99
  /// <reference path="../os.d.ts" />
69
100
  /// <reference path="../path.d.ts" />
101
+ /// <reference path="../path/posix.d.ts" />
102
+ /// <reference path="../path/win32.d.ts" />
70
103
  /// <reference path="../perf_hooks.d.ts" />
71
104
  /// <reference path="../process.d.ts" />
72
105
  /// <reference path="../punycode.d.ts" />
73
106
  /// <reference path="../querystring.d.ts" />
107
+ /// <reference path="../quic.d.ts" />
74
108
  /// <reference path="../readline.d.ts" />
75
109
  /// <reference path="../readline/promises.d.ts" />
76
110
  /// <reference path="../repl.d.ts" />
77
111
  /// <reference path="../sea.d.ts" />
78
112
  /// <reference path="../sqlite.d.ts" />
79
113
  /// <reference path="../stream.d.ts" />
80
- /// <reference path="../stream/promises.d.ts" />
81
114
  /// <reference path="../stream/consumers.d.ts" />
115
+ /// <reference path="../stream/promises.d.ts" />
82
116
  /// <reference path="../stream/web.d.ts" />
83
117
  /// <reference path="../string_decoder.d.ts" />
84
118
  /// <reference path="../test.d.ts" />
119
+ /// <reference path="../test/reporters.d.ts" />
85
120
  /// <reference path="../timers.d.ts" />
86
121
  /// <reference path="../timers/promises.d.ts" />
87
122
  /// <reference path="../tls.d.ts" />
@@ -89,6 +124,7 @@
89
124
  /// <reference path="../tty.d.ts" />
90
125
  /// <reference path="../url.d.ts" />
91
126
  /// <reference path="../util.d.ts" />
127
+ /// <reference path="../util/types.d.ts" />
92
128
  /// <reference path="../v8.d.ts" />
93
129
  /// <reference path="../vm.d.ts" />
94
130
  /// <reference path="../wasi.d.ts" />
package/tty.d.ts CHANGED
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  /**
2
17
  * The `node:tty` module provides the `tty.ReadStream` and `tty.WriteStream` classes. In most cases, it will not be necessary or possible to use this module
3
18
  * directly. However, it can be accessed using:
@@ -21,7 +36,7 @@
21
36
  *
22
37
  * In most cases, there should be little to no reason for an application to
23
38
  * manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes.
24
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/tty.js)
39
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/tty.js)
25
40
  */
26
41
 
27
42
  declare module "node:tty" {
@@ -76,6 +91,9 @@ declare module "node:tty" {
76
91
  * 1 - to the right from cursor
77
92
  */
78
93
  type Direction = -1 | 0 | 1;
94
+ interface WriteStreamEventMap extends net.SocketEventMap {
95
+ "resize": [];
96
+ }
79
97
  /**
80
98
  * Represents the writable side of a TTY. In normal circumstances, `process.stdout` and `process.stderr` will be the only`tty.WriteStream` instances created for a Node.js process and there
81
99
  * should be no reason to create additional instances.
@@ -83,18 +101,6 @@ declare module "node:tty" {
83
101
  */
84
102
  class WriteStream extends net.Socket {
85
103
  constructor(fd: number);
86
- addListener(event: string, listener: (...args: any[]) => void): this;
87
- addListener(event: "resize", listener: () => void): this;
88
- emit(event: string | symbol, ...args: any[]): boolean;
89
- emit(event: "resize"): boolean;
90
- on(event: string, listener: (...args: any[]) => void): this;
91
- on(event: "resize", listener: () => void): this;
92
- once(event: string, listener: (...args: any[]) => void): this;
93
- once(event: "resize", listener: () => void): this;
94
- prependListener(event: string, listener: (...args: any[]) => void): this;
95
- prependListener(event: "resize", listener: () => void): this;
96
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
97
- prependOnceListener(event: "resize", listener: () => void): this;
98
104
  /**
99
105
  * `writeStream.clearLine()` clears the current line of this `WriteStream` in a
100
106
  * direction identified by `dir`.
@@ -202,5 +208,56 @@ declare module "node:tty" {
202
208
  * @since v0.5.8
203
209
  */
204
210
  isTTY: boolean;
211
+ // #region InternalEventEmitter
212
+ addListener<E extends keyof WriteStreamEventMap>(
213
+ eventName: E,
214
+ listener: (...args: WriteStreamEventMap[E]) => void,
215
+ ): this;
216
+ addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
217
+ emit<E extends keyof WriteStreamEventMap>(eventName: E, ...args: WriteStreamEventMap[E]): boolean;
218
+ emit(eventName: string | symbol, ...args: any[]): boolean;
219
+ listenerCount<E extends keyof WriteStreamEventMap>(
220
+ eventName: E,
221
+ listener?: (...args: WriteStreamEventMap[E]) => void,
222
+ ): number;
223
+ listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
224
+ listeners<E extends keyof WriteStreamEventMap>(eventName: E): ((...args: WriteStreamEventMap[E]) => void)[];
225
+ listeners(eventName: string | symbol): ((...args: any[]) => void)[];
226
+ off<E extends keyof WriteStreamEventMap>(
227
+ eventName: E,
228
+ listener: (...args: WriteStreamEventMap[E]) => void,
229
+ ): this;
230
+ off(eventName: string | symbol, listener: (...args: any[]) => void): this;
231
+ on<E extends keyof WriteStreamEventMap>(
232
+ eventName: E,
233
+ listener: (...args: WriteStreamEventMap[E]) => void,
234
+ ): this;
235
+ on(eventName: string | symbol, listener: (...args: any[]) => void): this;
236
+ once<E extends keyof WriteStreamEventMap>(
237
+ eventName: E,
238
+ listener: (...args: WriteStreamEventMap[E]) => void,
239
+ ): this;
240
+ once(eventName: string | symbol, listener: (...args: any[]) => void): this;
241
+ prependListener<E extends keyof WriteStreamEventMap>(
242
+ eventName: E,
243
+ listener: (...args: WriteStreamEventMap[E]) => void,
244
+ ): this;
245
+ prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
246
+ prependOnceListener<E extends keyof WriteStreamEventMap>(
247
+ eventName: E,
248
+ listener: (...args: WriteStreamEventMap[E]) => void,
249
+ ): this;
250
+ prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
251
+ rawListeners<E extends keyof WriteStreamEventMap>(eventName: E): ((...args: WriteStreamEventMap[E]) => void)[];
252
+ rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
253
+ // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
254
+ removeAllListeners<E extends keyof WriteStreamEventMap>(eventName?: E): this;
255
+ removeAllListeners(eventName?: string | symbol): this;
256
+ removeListener<E extends keyof WriteStreamEventMap>(
257
+ eventName: E,
258
+ listener: (...args: WriteStreamEventMap[E]) => void,
259
+ ): this;
260
+ removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
261
+ // #endregion
205
262
  }
206
263
  }
@@ -1,6 +1,23 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  import { URL } from 'node:url'
2
17
  import Pool from './pool'
3
18
  import Dispatcher from './dispatcher'
19
+ import TClientStats from './client-stats'
20
+ import TPoolStats from './pool-stats'
4
21
 
5
22
  export default Agent
6
23
 
@@ -12,21 +29,20 @@ declare class Agent extends Dispatcher {
12
29
  destroyed: boolean
13
30
  /** Dispatches a request. */
14
31
  dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean
32
+ /** Aggregate stats for a Agent by origin. */
33
+ readonly stats: Record<string, TClientStats | TPoolStats>
15
34
  }
16
35
 
17
36
  declare namespace Agent {
18
37
  export interface Options extends Pool.Options {
19
38
  /** Default: `(origin, opts) => new Pool(origin, opts)`. */
20
39
  factory?(origin: string | URL, opts: Object): Dispatcher;
21
- /** Integer. Default: `0` */
22
- maxRedirections?: number;
23
40
 
24
41
  interceptors?: { Agent?: readonly Dispatcher.DispatchInterceptor[] } & Pool.Options['interceptors']
42
+ maxOrigins?: number
25
43
  }
26
44
 
27
45
  export interface DispatchOptions extends Dispatcher.DispatchOptions {
28
- /** Integer. */
29
- maxRedirections?: number;
30
46
  }
31
47
  }
32
48
 
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  import { URL, UrlObject } from 'node:url'
2
17
  import { Duplex } from 'node:stream'
3
18
  import Dispatcher from './dispatcher'
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  import Pool from './pool'
2
17
  import Dispatcher from './dispatcher'
3
18
  import { URL } from 'node:url'
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  import { Readable, Writable } from 'node:stream'
2
17
 
3
18
  export default CacheHandler
@@ -1,3 +1,18 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
1
16
  import type { RequestInfo, Response, Request } from './fetch'
2
17
 
3
18
  export interface CacheStorage {
@@ -0,0 +1,31 @@
1
+ // biome-ignore-all lint: generated file
2
+ // biome-ignore-all assist: generated file
3
+ /* eslint-disable */
4
+ // @ts-ignore
5
+
6
+ /******************************************************************************
7
+ * GENERATED FILE, DO NOT MODIFY
8
+ * 这是生成的文件,千万不要修改
9
+ *
10
+ * @build-script/codegen - The Simple Code Generater
11
+ * https://github.com/GongT/baobao
12
+ *
13
+ ******************************************************************************/
14
+
15
+
16
+ import Client from './client'
17
+
18
+ export default ClientStats
19
+
20
+ declare class ClientStats {
21
+ constructor (pool: Client)
22
+ /** If socket has open connection. */
23
+ connected: boolean
24
+ /** Number of open socket connections in this client that do not have an active request. */
25
+ pending: number
26
+ /** Number of currently active requests of this client. */
27
+ running: number
28
+ /** Number of active, pending, or queued requests of this client. */
29
+ size: number
30
+ }
31
+