@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/process.d.ts CHANGED
@@ -1,8 +1,25 @@
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:process" {
18
+ import { Control, MessageOptions, SendHandle } from 'node:child_process';
19
+ import { InternalEventEmitter } from 'node:events';
20
+ import { PathLike } from '_not-use-node-type_fs';
3
21
  import * as tty from 'node:tty';
4
22
  import { Worker } from 'node:worker_threads';
5
-
6
23
  interface BuiltInModule {
7
24
  "node:assert": typeof import('node:assert');
8
25
  "node:assert/strict": typeof import('node:assert/strict');
@@ -36,6 +53,7 @@ declare module "node:process" {
36
53
  "node:process": typeof import('node:process');
37
54
  "node:punycode": typeof import('node:punycode');
38
55
  "node:querystring": typeof import('node:querystring');
56
+ "node:quic": typeof import('node:quic');
39
57
  "node:readline": typeof import('_not-use-node-type_readline');
40
58
  "node:readline/promises": typeof import('node:readline/promises');
41
59
  "node:repl": typeof import('node:repl');
@@ -55,7 +73,6 @@ declare module "node:process" {
55
73
  "node:tty": typeof import('node:tty');
56
74
  "node:url": typeof import('node:url');
57
75
  "node:util": typeof import('node:util');
58
- "node:sys": typeof import('node:util');
59
76
  "node:util/types": typeof import('node:util/types');
60
77
  "node:v8": typeof import('node:v8');
61
78
  "node:vm": typeof import('node:vm');
@@ -63,8 +80,28 @@ declare module "node:process" {
63
80
  "node:worker_threads": typeof import('node:worker_threads');
64
81
  "node:zlib": typeof import('node:zlib');
65
82
  }
83
+ type SignalsEventMap = { [S in NodeJS.Signals]: [signal: S] };
84
+ interface ProcessEventMap extends SignalsEventMap {
85
+ "beforeExit": [code: number];
86
+ "disconnect": [];
87
+ "exit": [code: number];
88
+ "message": [
89
+ message: object | boolean | number | string | null,
90
+ sendHandle: SendHandle | undefined,
91
+ ];
92
+ "rejectionHandled": [promise: Promise<unknown>];
93
+ "uncaughtException": [error: Error, origin: NodeJS.UncaughtExceptionOrigin];
94
+ "uncaughtExceptionMonitor": [error: Error, origin: NodeJS.UncaughtExceptionOrigin];
95
+ "unhandledRejection": [reason: unknown, promise: Promise<unknown>];
96
+ "warning": [warning: Error];
97
+ "worker": [worker: Worker];
98
+ "workerMessage": [value: any, source: number];
99
+ }
66
100
  global {
67
101
  var process: NodeJS.Process;
102
+ namespace process {
103
+ export { ProcessEventMap };
104
+ }
68
105
  namespace NodeJS {
69
106
  // this namespace merge is here because these are specifically used
70
107
  // as the type for process.stdin, process.stdout, and process.stderr.
@@ -141,7 +178,7 @@ declare module "node:process" {
141
178
  readonly ipv6: boolean;
142
179
  /**
143
180
  * A boolean value that is `true` if the current Node.js build supports
144
- * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v24.x/api/modules.md#loading-ecmascript-modules-using-require).
181
+ * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v25.x/api/modules.md#loading-ecmascript-modules-using-require).
145
182
  * @since v22.10.0
146
183
  */
147
184
  readonly require_module: boolean;
@@ -265,26 +302,129 @@ declare module "node:process" {
265
302
  | "SIGLOST"
266
303
  | "SIGINFO";
267
304
  type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection";
268
- type MultipleResolveType = "resolve" | "reject";
269
- type BeforeExitListener = (code: number) => void;
270
- type DisconnectListener = () => void;
271
- type ExitListener = (code: number) => void;
272
- type RejectionHandledListener = (promise: Promise<unknown>) => void;
273
- type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
274
305
  /**
275
- * Most of the time the unhandledRejection will be an Error, but this should not be relied upon
276
- * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.
306
+ * @deprecated Global listener types will be removed in a future version.
307
+ * Callbacks passed directly to `process`'s EventEmitter methods
308
+ * have their parameter types inferred automatically.
309
+ *
310
+ * `process` event types are also available via `ProcessEventMap`:
311
+ *
312
+ * ```ts
313
+ * import type { ProcessEventMap } from 'node:process';
314
+ * const listener = (...args: ProcessEventMap['beforeExit']) => { ... };
315
+ * ```
316
+ */
317
+ type BeforeExitListener = (...args: ProcessEventMap["beforeExit"]) => void;
318
+ /**
319
+ * @deprecated Global listener types will be removed in a future version.
320
+ * Callbacks passed directly to `process`'s EventEmitter methods
321
+ * have their parameter types inferred automatically.
322
+ *
323
+ * `process` event types are also available via `ProcessEventMap`:
324
+ *
325
+ * ```ts
326
+ * import type { ProcessEventMap } from 'node:process';
327
+ * const listener = (...args: ProcessEventMap['disconnect']) => { ... };
328
+ * ```
329
+ */
330
+ type DisconnectListener = (...args: ProcessEventMap["disconnect"]) => void;
331
+ /**
332
+ * @deprecated Global listener types will be removed in a future version.
333
+ * Callbacks passed directly to `process`'s EventEmitter methods
334
+ * have their parameter types inferred automatically.
335
+ *
336
+ * `process` event types are also available via `ProcessEventMap`:
337
+ *
338
+ * ```ts
339
+ * import type { ProcessEventMap } from 'node:process';
340
+ * const listener = (...args: ProcessEventMap['exit']) => { ... };
341
+ * ```
342
+ */
343
+ type ExitListener = (...args: ProcessEventMap["exit"]) => void;
344
+ /**
345
+ * @deprecated Global listener types will be removed in a future version.
346
+ * Callbacks passed directly to `process`'s EventEmitter methods
347
+ * have their parameter types inferred automatically.
348
+ *
349
+ * `process` event types are also available via `ProcessEventMap`:
350
+ *
351
+ * ```ts
352
+ * import type { ProcessEventMap } from 'node:process';
353
+ * const listener = (...args: ProcessEventMap['message']) => { ... };
354
+ * ```
355
+ */
356
+ type MessageListener = (...args: ProcessEventMap["message"]) => void;
357
+ /**
358
+ * @deprecated Global listener types will be removed in a future version.
359
+ * Callbacks passed directly to `process`'s EventEmitter methods
360
+ * have their parameter types inferred automatically.
361
+ *
362
+ * `process` event types are also available via `ProcessEventMap`:
363
+ *
364
+ * ```ts
365
+ * import type { ProcessEventMap } from 'node:process';
366
+ * const listener = (...args: ProcessEventMap['rejectionHandled']) => { ... };
367
+ * ```
368
+ */
369
+ type RejectionHandledListener = (...args: ProcessEventMap["rejectionHandled"]) => void;
370
+ /**
371
+ * @deprecated Global listener types will be removed in a future version.
372
+ * Callbacks passed directly to `process`'s EventEmitter methods
373
+ * have their parameter types inferred automatically.
277
374
  */
278
- type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
279
- type WarningListener = (warning: Error) => void;
280
- type MessageListener = (message: unknown, sendHandle: unknown) => void;
281
375
  type SignalsListener = (signal: Signals) => void;
282
- type MultipleResolveListener = (
283
- type: MultipleResolveType,
284
- promise: Promise<unknown>,
285
- value: unknown,
286
- ) => void;
287
- type WorkerListener = (worker: Worker) => void;
376
+ /**
377
+ * @deprecated Global listener types will be removed in a future version.
378
+ * Callbacks passed directly to `process`'s EventEmitter methods
379
+ * have their parameter types inferred automatically.
380
+ *
381
+ * `process` event types are also available via `ProcessEventMap`:
382
+ *
383
+ * ```ts
384
+ * import type { ProcessEventMap } from 'node:process';
385
+ * const listener = (...args: ProcessEventMap['uncaughtException']) => { ... };
386
+ * ```
387
+ */
388
+ type UncaughtExceptionListener = (...args: ProcessEventMap["uncaughtException"]) => void;
389
+ /**
390
+ * @deprecated Global listener types will be removed in a future version.
391
+ * Callbacks passed directly to `process`'s EventEmitter methods
392
+ * have their parameter types inferred automatically.
393
+ *
394
+ * `process` event types are also available via `ProcessEventMap`:
395
+ *
396
+ * ```ts
397
+ * import type { ProcessEventMap } from 'node:process';
398
+ * const listener = (...args: ProcessEventMap['unhandledRejection']) => { ... };
399
+ * ```
400
+ */
401
+ type UnhandledRejectionListener = (...args: ProcessEventMap["unhandledRejection"]) => void;
402
+ /**
403
+ * @deprecated Global listener types will be removed in a future version.
404
+ * Callbacks passed directly to `process`'s EventEmitter methods
405
+ * have their parameter types inferred automatically.
406
+ *
407
+ * `process` event types are also available via `ProcessEventMap`:
408
+ *
409
+ * ```ts
410
+ * import type { ProcessEventMap } from 'node:process';
411
+ * const listener = (...args: ProcessEventMap['warning']) => { ... };
412
+ * ```
413
+ */
414
+ type WarningListener = (...args: ProcessEventMap["warning"]) => void;
415
+ /**
416
+ * @deprecated Global listener types will be removed in a future version.
417
+ * Callbacks passed directly to `process`'s EventEmitter methods
418
+ * have their parameter types inferred automatically.
419
+ *
420
+ * `process` event types are also available via `ProcessEventMap`:
421
+ *
422
+ * ```ts
423
+ * import type { ProcessEventMap } from 'node:process';
424
+ * const listener = (...args: ProcessEventMap['worker']) => { ... };
425
+ * ```
426
+ */
427
+ type WorkerListener = (...args: ProcessEventMap["worker"]) => void;
288
428
  interface Socket extends ReadWriteStream {
289
429
  isTTY?: true | undefined;
290
430
  }
@@ -293,7 +433,7 @@ declare module "node:process" {
293
433
  /**
294
434
  * Can be used to change the default timezone at runtime
295
435
  */
296
- TZ?: string;
436
+ TZ?: string | undefined;
297
437
  }
298
438
  interface HRTime {
299
439
  /**
@@ -417,6 +557,11 @@ declare module "node:process" {
417
557
  * @default false
418
558
  */
419
559
  reportOnUncaughtException: boolean;
560
+ /**
561
+ * If true, a diagnostic report is generated without the environment variables.
562
+ * @default false
563
+ */
564
+ excludeEnv: boolean;
420
565
  /**
421
566
  * The signal used to trigger the creation of a diagnostic report.
422
567
  * @default 'SIGUSR2'
@@ -505,7 +650,7 @@ declare module "node:process" {
505
650
  readonly visibility: string;
506
651
  };
507
652
  }
508
- interface Process extends EventEmitter {
653
+ interface Process extends InternalEventEmitter<ProcessEventMap> {
509
654
  /**
510
655
  * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is
511
656
  * a `Writable` stream.
@@ -694,7 +839,7 @@ declare module "node:process" {
694
839
  * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()`
695
840
  * unless there are specific reasons such as custom dlopen flags or loading from ES modules.
696
841
  *
697
- * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v24.x/api/os.html#dlopen-constants)`
842
+ * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v25.x/api/os.html#dlopen-constants)`
698
843
  * documentation for details.
699
844
  *
700
845
  * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon
@@ -937,7 +1082,7 @@ declare module "node:process" {
937
1082
  * @since v0.1.13
938
1083
  * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
939
1084
  */
940
- exit(code?: number | string | null | undefined): never;
1085
+ exit(code?: number | string | null): never;
941
1086
  /**
942
1087
  * A number which will be the process exit code, when the process either
943
1088
  * exits gracefully, or is exited via {@link exit} without specifying
@@ -948,7 +1093,7 @@ declare module "node:process" {
948
1093
  * @default undefined
949
1094
  * @since v0.11.8
950
1095
  */
951
- exitCode?: number | string | number | undefined;
1096
+ exitCode: number | string | null | undefined;
952
1097
  finalization: {
953
1098
  /**
954
1099
  * This function registers a callback to be called when the process emits the `exit` event if the `ref` object was not garbage collected.
@@ -1412,7 +1557,7 @@ declare module "node:process" {
1412
1557
  * @since v20.12.0
1413
1558
  * @param path The path to the .env file
1414
1559
  */
1415
- loadEnvFile(path?: string | URL | Buffer): void;
1560
+ loadEnvFile(path?: PathLike): void;
1416
1561
  /**
1417
1562
  * The `process.pid` property returns the PID of the process.
1418
1563
  *
@@ -1515,7 +1660,7 @@ declare module "node:process" {
1515
1660
  * @since v0.1.17
1516
1661
  * @deprecated Since v14.0.0 - Use `main` instead.
1517
1662
  */
1518
- mainModule?: Module | undefined;
1663
+ mainModule?: Module;
1519
1664
  memoryUsage: MemoryUsageFn;
1520
1665
  /**
1521
1666
  * Gets the amount of memory available to the process (in bytes) based on
@@ -1529,7 +1674,7 @@ declare module "node:process" {
1529
1674
  constrainedMemory(): number;
1530
1675
  /**
1531
1676
  * Gets the amount of free memory that is still available to the process (in bytes).
1532
- * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v24.x/api/process.html#processavailablememory) for more information.
1677
+ * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v25.x/api/process.html#processavailablememory) for more information.
1533
1678
  * @since v20.13.0
1534
1679
  */
1535
1680
  availableMemory(): number;
@@ -1649,6 +1794,11 @@ declare module "node:process" {
1649
1794
  * @param args Additional arguments to pass when invoking the `callback`
1650
1795
  */
1651
1796
  nextTick(callback: Function, ...args: any[]): void;
1797
+ /**
1798
+ * The process.noDeprecation property indicates whether the --no-deprecation flag is set on the current Node.js process.
1799
+ * See the documentation for the ['warning' event](https://nodejs.org/docs/latest/api/process.html#event-warning) and the [emitWarning()](https://nodejs.org/docs/latest/api/process.html#processemitwarningwarning-type-code-ctor) method for more information about this flag's behavior.
1800
+ */
1801
+ noDeprecation?: boolean;
1652
1802
  /**
1653
1803
  * This API is available through the [--permission](https://nodejs.org/api/cli.html#--permission) flag.
1654
1804
  *
@@ -1707,18 +1857,7 @@ declare module "node:process" {
1707
1857
  * If no IPC channel exists, this property is undefined.
1708
1858
  * @since v7.1.0
1709
1859
  */
1710
- channel?: {
1711
- /**
1712
- * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
1713
- * @since v7.1.0
1714
- */
1715
- ref(): void;
1716
- /**
1717
- * This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
1718
- * @since v7.1.0
1719
- */
1720
- unref(): void;
1721
- };
1860
+ channel?: Control;
1722
1861
  /**
1723
1862
  * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1724
1863
  * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
@@ -1732,10 +1871,17 @@ declare module "node:process" {
1732
1871
  */
1733
1872
  send?(
1734
1873
  message: any,
1735
- sendHandle?: any,
1736
- options?: {
1737
- keepOpen?: boolean | undefined;
1738
- },
1874
+ callback?: (error: Error | null) => void,
1875
+ ): boolean;
1876
+ send?(
1877
+ message: any,
1878
+ sendHandle: SendHandle,
1879
+ callback?: (error: Error | null) => void,
1880
+ ): boolean;
1881
+ send?(
1882
+ message: any,
1883
+ sendHandle: SendHandle,
1884
+ options: MessageOptions,
1739
1885
  callback?: (error: Error | null) => void,
1740
1886
  ): boolean;
1741
1887
  /**
@@ -1748,7 +1894,7 @@ declare module "node:process" {
1748
1894
  * If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`.
1749
1895
  * @since v0.7.2
1750
1896
  */
1751
- disconnect(): void;
1897
+ disconnect?(): void;
1752
1898
  /**
1753
1899
  * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return `true` so long as the IPC
1754
1900
  * channel is connected and will return `false` after `process.disconnect()` is called.
@@ -1802,7 +1948,7 @@ declare module "node:process" {
1802
1948
  allowedNodeEnvironmentFlags: ReadonlySet<string>;
1803
1949
  /**
1804
1950
  * `process.report` is an object whose methods are used to generate diagnostic reports for the current process.
1805
- * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v24.x/api/report.html).
1951
+ * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v25.x/api/report.html).
1806
1952
  * @since v11.8.0
1807
1953
  */
1808
1954
  report: ProcessReport;
@@ -1917,98 +2063,6 @@ declare module "node:process" {
1917
2063
  * **Default:** `process.env`.
1918
2064
  */
1919
2065
  execve?(file: string, args?: readonly string[], env?: ProcessEnv): never;
1920
- /* EventEmitter */
1921
- addListener(event: "beforeExit", listener: BeforeExitListener): this;
1922
- addListener(event: "disconnect", listener: DisconnectListener): this;
1923
- addListener(event: "exit", listener: ExitListener): this;
1924
- addListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
1925
- addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1926
- addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1927
- addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1928
- addListener(event: "warning", listener: WarningListener): this;
1929
- addListener(event: "message", listener: MessageListener): this;
1930
- addListener(event: Signals, listener: SignalsListener): this;
1931
- addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1932
- addListener(event: "worker", listener: WorkerListener): this;
1933
- emit(event: "beforeExit", code: number): boolean;
1934
- emit(event: "disconnect"): boolean;
1935
- emit(event: "exit", code: number): boolean;
1936
- emit(event: "rejectionHandled", promise: Promise<unknown>): boolean;
1937
- emit(event: "uncaughtException", error: Error): boolean;
1938
- emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
1939
- emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
1940
- emit(event: "warning", warning: Error): boolean;
1941
- emit(event: "message", message: unknown, sendHandle: unknown): this;
1942
- emit(event: Signals, signal?: Signals): boolean;
1943
- emit(
1944
- event: "multipleResolves",
1945
- type: MultipleResolveType,
1946
- promise: Promise<unknown>,
1947
- value: unknown,
1948
- ): this;
1949
- emit(event: "worker", listener: WorkerListener): this;
1950
- on(event: "beforeExit", listener: BeforeExitListener): this;
1951
- on(event: "disconnect", listener: DisconnectListener): this;
1952
- on(event: "exit", listener: ExitListener): this;
1953
- on(event: "rejectionHandled", listener: RejectionHandledListener): this;
1954
- on(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1955
- on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1956
- on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1957
- on(event: "warning", listener: WarningListener): this;
1958
- on(event: "message", listener: MessageListener): this;
1959
- on(event: Signals, listener: SignalsListener): this;
1960
- on(event: "multipleResolves", listener: MultipleResolveListener): this;
1961
- on(event: "worker", listener: WorkerListener): this;
1962
- on(event: string | symbol, listener: (...args: any[]) => void): this;
1963
- once(event: "beforeExit", listener: BeforeExitListener): this;
1964
- once(event: "disconnect", listener: DisconnectListener): this;
1965
- once(event: "exit", listener: ExitListener): this;
1966
- once(event: "rejectionHandled", listener: RejectionHandledListener): this;
1967
- once(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1968
- once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1969
- once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1970
- once(event: "warning", listener: WarningListener): this;
1971
- once(event: "message", listener: MessageListener): this;
1972
- once(event: Signals, listener: SignalsListener): this;
1973
- once(event: "multipleResolves", listener: MultipleResolveListener): this;
1974
- once(event: "worker", listener: WorkerListener): this;
1975
- once(event: string | symbol, listener: (...args: any[]) => void): this;
1976
- prependListener(event: "beforeExit", listener: BeforeExitListener): this;
1977
- prependListener(event: "disconnect", listener: DisconnectListener): this;
1978
- prependListener(event: "exit", listener: ExitListener): this;
1979
- prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
1980
- prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1981
- prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1982
- prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1983
- prependListener(event: "warning", listener: WarningListener): this;
1984
- prependListener(event: "message", listener: MessageListener): this;
1985
- prependListener(event: Signals, listener: SignalsListener): this;
1986
- prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1987
- prependListener(event: "worker", listener: WorkerListener): this;
1988
- prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
1989
- prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
1990
- prependOnceListener(event: "exit", listener: ExitListener): this;
1991
- prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
1992
- prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1993
- prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1994
- prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1995
- prependOnceListener(event: "warning", listener: WarningListener): this;
1996
- prependOnceListener(event: "message", listener: MessageListener): this;
1997
- prependOnceListener(event: Signals, listener: SignalsListener): this;
1998
- prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1999
- prependOnceListener(event: "worker", listener: WorkerListener): this;
2000
- listeners(event: "beforeExit"): BeforeExitListener[];
2001
- listeners(event: "disconnect"): DisconnectListener[];
2002
- listeners(event: "exit"): ExitListener[];
2003
- listeners(event: "rejectionHandled"): RejectionHandledListener[];
2004
- listeners(event: "uncaughtException"): UncaughtExceptionListener[];
2005
- listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[];
2006
- listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
2007
- listeners(event: "warning"): WarningListener[];
2008
- listeners(event: "message"): MessageListener[];
2009
- listeners(event: Signals): SignalsListener[];
2010
- listeners(event: "multipleResolves"): MultipleResolveListener[];
2011
- listeners(event: "worker"): WorkerListener[];
2012
2066
  }
2013
2067
  }
2014
2068
  }
package/punycode.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 version of the punycode module bundled in Node.js is being deprecated. **In a future major version of Node.js this module will be removed. Users
3
18
  * currently depending on the `punycode` module should switch to using the
@@ -23,8 +38,8 @@
23
38
  * The `punycode` module is a third-party dependency used by Node.js and
24
39
  * made available to developers as a convenience. Fixes or other modifications to
25
40
  * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project.
26
- * @deprecated Since v7.0.0 - Deprecated
27
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/punycode.js)
41
+ * @deprecated
42
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/punycode.js)
28
43
  */
29
44
 
30
45
  declare module "node:punycode" {
package/querystring.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:querystring` module provides utilities for parsing and formatting URL
3
18
  * query strings. It can be accessed using:
@@ -9,7 +24,7 @@
9
24
  * `querystring` is more performant than `URLSearchParams` but is not a
10
25
  * standardized API. Use `URLSearchParams` when performance is not critical or
11
26
  * when compatibility with browser code is desirable.
12
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/querystring.js)
27
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/querystring.js)
13
28
  */
14
29
 
15
30
  declare module "node:querystring" {