@types/node 24.10.3 → 25.0.1

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 (99) hide show
  1. node v24.10/README.md → node/README.md +2 -2
  2. node v24.10/assert/strict.d.ts → node/assert/strict.d.ts +5 -11
  3. node v24.10/assert.d.ts → node/assert.d.ts +9 -169
  4. node v24.10/async_hooks.d.ts → node/async_hooks.d.ts +8 -8
  5. node v24.10/buffer.buffer.d.ts → node/buffer.buffer.d.ts +1 -7
  6. node v24.10/buffer.d.ts → node/buffer.d.ts +44 -168
  7. node v24.10/child_process.d.ts → node/child_process.d.ts +16 -64
  8. node/cluster.d.ts +486 -0
  9. node/console.d.ts +151 -0
  10. node v24.10/constants.d.ts → node/constants.d.ts +3 -4
  11. node v24.10/crypto.d.ts → node/crypto.d.ts +279 -1631
  12. node v24.10/dgram.d.ts → node/dgram.d.ts +15 -51
  13. node v24.10/diagnostics_channel.d.ts → node/diagnostics_channel.d.ts +4 -4
  14. node v24.10/dns/promises.d.ts → node/dns/promises.d.ts +3 -3
  15. node v24.10/dns.d.ts → node/dns.d.ts +131 -132
  16. node v24.10/domain.d.ts → node/domain.d.ts +13 -17
  17. node/events.d.ts +1046 -0
  18. node v24.10/fs/promises.d.ts → node/fs/promises.d.ts +7 -8
  19. node v24.10/fs.d.ts → node/fs.d.ts +417 -455
  20. node v24.10/globals.d.ts → node/globals.d.ts +6 -26
  21. node/globals.typedarray.d.ts +101 -0
  22. node v24.10/http.d.ts → node/http.d.ts +263 -254
  23. node v24.10/http2.d.ts → node/http2.d.ts +528 -804
  24. node v24.10/https.d.ts → node/https.d.ts +59 -239
  25. node v24.10/index.d.ts → node/index.d.ts +15 -1
  26. node/inspector/promises.d.ts +41 -0
  27. node v24.10/inspector.d.ts → node/inspector.d.ts +6 -59
  28. node v24.10/inspector.generated.d.ts → node/inspector.generated.d.ts +3 -10
  29. node v24.10/module.d.ts → node/module.d.ts +47 -122
  30. node v24.10/net.d.ts → node/net.d.ts +63 -184
  31. node v24.10/os.d.ts → node/os.d.ts +6 -6
  32. node v24.10/package.json → node/package.json +2 -2
  33. node/path/posix.d.ts +8 -0
  34. node/path/win32.d.ts +8 -0
  35. node/path.d.ts +187 -0
  36. node/perf_hooks.d.ts +621 -0
  37. node v24.10/process.d.ts → node/process.d.ts +151 -128
  38. node v24.10/punycode.d.ts → node/punycode.d.ts +5 -5
  39. node v24.10/querystring.d.ts → node/querystring.d.ts +4 -4
  40. node/quic.d.ts +910 -0
  41. node v24.10/readline/promises.d.ts → node/readline/promises.d.ts +3 -3
  42. node v24.10/readline.d.ts → node/readline.d.ts +67 -120
  43. node v24.10/repl.d.ts → node/repl.d.ts +75 -98
  44. node v24.10/sea.d.ts → node/sea.d.ts +1 -1
  45. node v24.10/sqlite.d.ts → node/sqlite.d.ts +2 -2
  46. node v24.10/stream/consumers.d.ts → node/stream/consumers.d.ts +10 -10
  47. node/stream/promises.d.ts +211 -0
  48. node/stream/web.d.ts +296 -0
  49. node v24.10/stream.d.ts → node/stream.d.ts +555 -478
  50. node v24.10/string_decoder.d.ts → node/string_decoder.d.ts +4 -4
  51. node/test/reporters.d.ts +96 -0
  52. node v24.10/test.d.ts → node/test.d.ts +80 -180
  53. node v24.10/timers/promises.d.ts → node/timers/promises.d.ts +4 -4
  54. node v24.10/timers.d.ts → node/timers.d.ts +4 -130
  55. node v24.10/tls.d.ts → node/tls.d.ts +102 -177
  56. node v24.10/trace_events.d.ts → node/trace_events.d.ts +9 -9
  57. node v24.10/ts5.6/buffer.buffer.d.ts → node/ts5.6/buffer.buffer.d.ts +1 -7
  58. node v24.10/ts5.6/index.d.ts → node/ts5.6/index.d.ts +15 -1
  59. node v24.10/ts5.7/index.d.ts → node/ts5.7/index.d.ts +15 -1
  60. node v24.10/tty.d.ts → node/tty.d.ts +58 -16
  61. node/url.d.ts +519 -0
  62. node/util/types.d.ts +558 -0
  63. node v24.10/util.d.ts → node/util.d.ts +120 -792
  64. node v24.10/v8.d.ts → node/v8.d.ts +32 -5
  65. node v24.10/vm.d.ts → node/vm.d.ts +13 -13
  66. node v24.10/wasi.d.ts → node/wasi.d.ts +4 -4
  67. node v24.10/web-globals/abortcontroller.d.ts → node/web-globals/abortcontroller.d.ts +27 -2
  68. node/web-globals/blob.d.ts +23 -0
  69. node/web-globals/console.d.ts +9 -0
  70. node v24.10/web-globals/crypto.d.ts → node/web-globals/crypto.d.ts +7 -0
  71. node/web-globals/encoding.d.ts +11 -0
  72. node v24.10/web-globals/events.d.ts → node/web-globals/events.d.ts +9 -0
  73. node v24.10/web-globals/fetch.d.ts → node/web-globals/fetch.d.ts +4 -0
  74. node/web-globals/importmeta.d.ts +13 -0
  75. node/web-globals/messaging.d.ts +23 -0
  76. node/web-globals/performance.d.ts +45 -0
  77. node/web-globals/streams.d.ts +115 -0
  78. node/web-globals/timers.d.ts +44 -0
  79. node/web-globals/url.d.ts +24 -0
  80. node v24.10/worker_threads.d.ts → node/worker_threads.d.ts +176 -358
  81. node v24.10/zlib.d.ts → node/zlib.d.ts +8 -71
  82. node v24.10/cluster.d.ts +0 -578
  83. node v24.10/console.d.ts +0 -453
  84. node v24.10/events.d.ts +0 -976
  85. node v24.10/globals.typedarray.d.ts +0 -41
  86. node v24.10/path.d.ts +0 -200
  87. node v24.10/perf_hooks.d.ts +0 -982
  88. node v24.10/stream/promises.d.ts +0 -90
  89. node v24.10/stream/web.d.ts +0 -573
  90. node v24.10/url.d.ts +0 -1057
  91. node v24.10/web-globals/streams.d.ts +0 -22
  92. {node v24.10 → node}/LICENSE +0 -0
  93. {node v24.10 → node}/compatibility/iterators.d.ts +0 -0
  94. {node v24.10 → node}/ts5.6/compatibility/float16array.d.ts +0 -0
  95. {node v24.10 → node}/ts5.6/globals.typedarray.d.ts +0 -0
  96. {node v24.10 → node}/ts5.7/compatibility/float16array.d.ts +0 -0
  97. {node v24.10 → node}/web-globals/domexception.d.ts +0 -0
  98. {node v24.10 → node}/web-globals/navigator.d.ts +0 -0
  99. {node v24.10 → node}/web-globals/storage.d.ts +0 -0
@@ -1,9 +1,9 @@
1
- declare module "process" {
1
+ declare module "node:process" {
2
2
  import { Control, MessageOptions, SendHandle } from "node:child_process";
3
+ import { InternalEventEmitter } from "node:events";
3
4
  import { PathLike } from "node:fs";
4
5
  import * as tty from "node:tty";
5
6
  import { Worker } from "node:worker_threads";
6
-
7
7
  interface BuiltInModule {
8
8
  "assert": typeof import("assert");
9
9
  "node:assert": typeof import("node:assert");
@@ -69,6 +69,7 @@ declare module "process" {
69
69
  "node:punycode": typeof import("node:punycode");
70
70
  "querystring": typeof import("querystring");
71
71
  "node:querystring": typeof import("node:querystring");
72
+ "node:quic": typeof import("node:quic");
72
73
  "readline": typeof import("readline");
73
74
  "node:readline": typeof import("node:readline");
74
75
  "readline/promises": typeof import("readline/promises");
@@ -103,8 +104,6 @@ declare module "process" {
103
104
  "node:url": typeof import("node:url");
104
105
  "util": typeof import("util");
105
106
  "node:util": typeof import("node:util");
106
- "sys": typeof import("util");
107
- "node:sys": typeof import("node:util");
108
107
  "util/types": typeof import("util/types");
109
108
  "node:util/types": typeof import("node:util/types");
110
109
  "v8": typeof import("v8");
@@ -118,8 +117,28 @@ declare module "process" {
118
117
  "zlib": typeof import("zlib");
119
118
  "node:zlib": typeof import("node:zlib");
120
119
  }
120
+ type SignalsEventMap = { [S in NodeJS.Signals]: [signal: S] };
121
+ interface ProcessEventMap extends SignalsEventMap {
122
+ "beforeExit": [code: number];
123
+ "disconnect": [];
124
+ "exit": [code: number];
125
+ "message": [
126
+ message: object | boolean | number | string | null,
127
+ sendHandle: SendHandle | undefined,
128
+ ];
129
+ "rejectionHandled": [promise: Promise<unknown>];
130
+ "uncaughtException": [error: Error, origin: NodeJS.UncaughtExceptionOrigin];
131
+ "uncaughtExceptionMonitor": [error: Error, origin: NodeJS.UncaughtExceptionOrigin];
132
+ "unhandledRejection": [reason: unknown, promise: Promise<unknown>];
133
+ "warning": [warning: Error];
134
+ "worker": [worker: Worker];
135
+ "workerMessage": [value: any, source: number];
136
+ }
121
137
  global {
122
138
  var process: NodeJS.Process;
139
+ namespace process {
140
+ export { ProcessEventMap };
141
+ }
123
142
  namespace NodeJS {
124
143
  // this namespace merge is here because these are specifically used
125
144
  // as the type for process.stdin, process.stdout, and process.stderr.
@@ -196,7 +215,7 @@ declare module "process" {
196
215
  readonly ipv6: boolean;
197
216
  /**
198
217
  * A boolean value that is `true` if the current Node.js build supports
199
- * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v24.x/api/modules.md#loading-ecmascript-modules-using-require).
218
+ * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v25.x/api/modules.md#loading-ecmascript-modules-using-require).
200
219
  * @since v22.10.0
201
220
  */
202
221
  readonly require_module: boolean;
@@ -320,26 +339,129 @@ declare module "process" {
320
339
  | "SIGLOST"
321
340
  | "SIGINFO";
322
341
  type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection";
323
- type MultipleResolveType = "resolve" | "reject";
324
- type BeforeExitListener = (code: number) => void;
325
- type DisconnectListener = () => void;
326
- type ExitListener = (code: number) => void;
327
- type RejectionHandledListener = (promise: Promise<unknown>) => void;
328
- type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
329
342
  /**
330
- * Most of the time the unhandledRejection will be an Error, but this should not be relied upon
331
- * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.
343
+ * @deprecated Global listener types will be removed in a future version.
344
+ * Callbacks passed directly to `process`'s EventEmitter methods
345
+ * have their parameter types inferred automatically.
346
+ *
347
+ * `process` event types are also available via `ProcessEventMap`:
348
+ *
349
+ * ```ts
350
+ * import type { ProcessEventMap } from 'node:process';
351
+ * const listener = (...args: ProcessEventMap['beforeExit']) => { ... };
352
+ * ```
353
+ */
354
+ type BeforeExitListener = (...args: ProcessEventMap["beforeExit"]) => void;
355
+ /**
356
+ * @deprecated Global listener types will be removed in a future version.
357
+ * Callbacks passed directly to `process`'s EventEmitter methods
358
+ * have their parameter types inferred automatically.
359
+ *
360
+ * `process` event types are also available via `ProcessEventMap`:
361
+ *
362
+ * ```ts
363
+ * import type { ProcessEventMap } from 'node:process';
364
+ * const listener = (...args: ProcessEventMap['disconnect']) => { ... };
365
+ * ```
366
+ */
367
+ type DisconnectListener = (...args: ProcessEventMap["disconnect"]) => void;
368
+ /**
369
+ * @deprecated Global listener types will be removed in a future version.
370
+ * Callbacks passed directly to `process`'s EventEmitter methods
371
+ * have their parameter types inferred automatically.
372
+ *
373
+ * `process` event types are also available via `ProcessEventMap`:
374
+ *
375
+ * ```ts
376
+ * import type { ProcessEventMap } from 'node:process';
377
+ * const listener = (...args: ProcessEventMap['exit']) => { ... };
378
+ * ```
379
+ */
380
+ type ExitListener = (...args: ProcessEventMap["exit"]) => void;
381
+ /**
382
+ * @deprecated Global listener types will be removed in a future version.
383
+ * Callbacks passed directly to `process`'s EventEmitter methods
384
+ * have their parameter types inferred automatically.
385
+ *
386
+ * `process` event types are also available via `ProcessEventMap`:
387
+ *
388
+ * ```ts
389
+ * import type { ProcessEventMap } from 'node:process';
390
+ * const listener = (...args: ProcessEventMap['message']) => { ... };
391
+ * ```
392
+ */
393
+ type MessageListener = (...args: ProcessEventMap["message"]) => void;
394
+ /**
395
+ * @deprecated Global listener types will be removed in a future version.
396
+ * Callbacks passed directly to `process`'s EventEmitter methods
397
+ * have their parameter types inferred automatically.
398
+ *
399
+ * `process` event types are also available via `ProcessEventMap`:
400
+ *
401
+ * ```ts
402
+ * import type { ProcessEventMap } from 'node:process';
403
+ * const listener = (...args: ProcessEventMap['rejectionHandled']) => { ... };
404
+ * ```
405
+ */
406
+ type RejectionHandledListener = (...args: ProcessEventMap["rejectionHandled"]) => void;
407
+ /**
408
+ * @deprecated Global listener types will be removed in a future version.
409
+ * Callbacks passed directly to `process`'s EventEmitter methods
410
+ * have their parameter types inferred automatically.
332
411
  */
333
- type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
334
- type WarningListener = (warning: Error) => void;
335
- type MessageListener = (message: unknown, sendHandle: SendHandle) => void;
336
412
  type SignalsListener = (signal: Signals) => void;
337
- type MultipleResolveListener = (
338
- type: MultipleResolveType,
339
- promise: Promise<unknown>,
340
- value: unknown,
341
- ) => void;
342
- type WorkerListener = (worker: Worker) => void;
413
+ /**
414
+ * @deprecated Global listener types will be removed in a future version.
415
+ * Callbacks passed directly to `process`'s EventEmitter methods
416
+ * have their parameter types inferred automatically.
417
+ *
418
+ * `process` event types are also available via `ProcessEventMap`:
419
+ *
420
+ * ```ts
421
+ * import type { ProcessEventMap } from 'node:process';
422
+ * const listener = (...args: ProcessEventMap['uncaughtException']) => { ... };
423
+ * ```
424
+ */
425
+ type UncaughtExceptionListener = (...args: ProcessEventMap["uncaughtException"]) => void;
426
+ /**
427
+ * @deprecated Global listener types will be removed in a future version.
428
+ * Callbacks passed directly to `process`'s EventEmitter methods
429
+ * have their parameter types inferred automatically.
430
+ *
431
+ * `process` event types are also available via `ProcessEventMap`:
432
+ *
433
+ * ```ts
434
+ * import type { ProcessEventMap } from 'node:process';
435
+ * const listener = (...args: ProcessEventMap['unhandledRejection']) => { ... };
436
+ * ```
437
+ */
438
+ type UnhandledRejectionListener = (...args: ProcessEventMap["unhandledRejection"]) => void;
439
+ /**
440
+ * @deprecated Global listener types will be removed in a future version.
441
+ * Callbacks passed directly to `process`'s EventEmitter methods
442
+ * have their parameter types inferred automatically.
443
+ *
444
+ * `process` event types are also available via `ProcessEventMap`:
445
+ *
446
+ * ```ts
447
+ * import type { ProcessEventMap } from 'node:process';
448
+ * const listener = (...args: ProcessEventMap['warning']) => { ... };
449
+ * ```
450
+ */
451
+ type WarningListener = (...args: ProcessEventMap["warning"]) => void;
452
+ /**
453
+ * @deprecated Global listener types will be removed in a future version.
454
+ * Callbacks passed directly to `process`'s EventEmitter methods
455
+ * have their parameter types inferred automatically.
456
+ *
457
+ * `process` event types are also available via `ProcessEventMap`:
458
+ *
459
+ * ```ts
460
+ * import type { ProcessEventMap } from 'node:process';
461
+ * const listener = (...args: ProcessEventMap['worker']) => { ... };
462
+ * ```
463
+ */
464
+ type WorkerListener = (...args: ProcessEventMap["worker"]) => void;
343
465
  interface Socket extends ReadWriteStream {
344
466
  isTTY?: true | undefined;
345
467
  }
@@ -560,7 +682,7 @@ declare module "process" {
560
682
  readonly visibility: string;
561
683
  };
562
684
  }
563
- interface Process extends EventEmitter {
685
+ interface Process extends InternalEventEmitter<ProcessEventMap> {
564
686
  /**
565
687
  * 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
566
688
  * a `Writable` stream.
@@ -749,7 +871,7 @@ declare module "process" {
749
871
  * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()`
750
872
  * unless there are specific reasons such as custom dlopen flags or loading from ES modules.
751
873
  *
752
- * 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)`
874
+ * 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)`
753
875
  * documentation for details.
754
876
  *
755
877
  * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon
@@ -1584,7 +1706,7 @@ declare module "process" {
1584
1706
  constrainedMemory(): number;
1585
1707
  /**
1586
1708
  * Gets the amount of free memory that is still available to the process (in bytes).
1587
- * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v24.x/api/process.html#processavailablememory) for more information.
1709
+ * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v25.x/api/process.html#processavailablememory) for more information.
1588
1710
  * @since v20.13.0
1589
1711
  */
1590
1712
  availableMemory(): number;
@@ -1790,7 +1912,7 @@ declare module "process" {
1790
1912
  * If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`.
1791
1913
  * @since v0.7.2
1792
1914
  */
1793
- disconnect(): void;
1915
+ disconnect?(): void;
1794
1916
  /**
1795
1917
  * 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
1796
1918
  * channel is connected and will return `false` after `process.disconnect()` is called.
@@ -1844,7 +1966,7 @@ declare module "process" {
1844
1966
  allowedNodeEnvironmentFlags: ReadonlySet<string>;
1845
1967
  /**
1846
1968
  * `process.report` is an object whose methods are used to generate diagnostic reports for the current process.
1847
- * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v24.x/api/report.html).
1969
+ * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v25.x/api/report.html).
1848
1970
  * @since v11.8.0
1849
1971
  */
1850
1972
  report: ProcessReport;
@@ -1959,111 +2081,12 @@ declare module "process" {
1959
2081
  * **Default:** `process.env`.
1960
2082
  */
1961
2083
  execve?(file: string, args?: readonly string[], env?: ProcessEnv): never;
1962
- /* EventEmitter */
1963
- addListener(event: "beforeExit", listener: BeforeExitListener): this;
1964
- addListener(event: "disconnect", listener: DisconnectListener): this;
1965
- addListener(event: "exit", listener: ExitListener): this;
1966
- addListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
1967
- addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1968
- addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1969
- addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1970
- addListener(event: "warning", listener: WarningListener): this;
1971
- addListener(event: "message", listener: MessageListener): this;
1972
- addListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
1973
- addListener(event: Signals, listener: SignalsListener): this;
1974
- addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1975
- addListener(event: "worker", listener: WorkerListener): this;
1976
- emit(event: "beforeExit", code: number): boolean;
1977
- emit(event: "disconnect"): boolean;
1978
- emit(event: "exit", code: number): boolean;
1979
- emit(event: "rejectionHandled", promise: Promise<unknown>): boolean;
1980
- emit(event: "uncaughtException", error: Error): boolean;
1981
- emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
1982
- emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
1983
- emit(event: "warning", warning: Error): boolean;
1984
- emit(event: "message", message: unknown, sendHandle: SendHandle): this;
1985
- emit(event: "workerMessage", value: any, source: number): this;
1986
- emit(event: Signals, signal?: Signals): boolean;
1987
- emit(
1988
- event: "multipleResolves",
1989
- type: MultipleResolveType,
1990
- promise: Promise<unknown>,
1991
- value: unknown,
1992
- ): this;
1993
- emit(event: "worker", listener: WorkerListener): this;
1994
- on(event: "beforeExit", listener: BeforeExitListener): this;
1995
- on(event: "disconnect", listener: DisconnectListener): this;
1996
- on(event: "exit", listener: ExitListener): this;
1997
- on(event: "rejectionHandled", listener: RejectionHandledListener): this;
1998
- on(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1999
- on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
2000
- on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
2001
- on(event: "warning", listener: WarningListener): this;
2002
- on(event: "message", listener: MessageListener): this;
2003
- on(event: Signals, listener: SignalsListener): this;
2004
- on(event: "multipleResolves", listener: MultipleResolveListener): this;
2005
- on(event: "worker", listener: WorkerListener): this;
2006
- on(event: "workerMessage", listener: (value: any, source: number) => void): this;
2007
- on(event: string | symbol, listener: (...args: any[]) => void): this;
2008
- once(event: "beforeExit", listener: BeforeExitListener): this;
2009
- once(event: "disconnect", listener: DisconnectListener): this;
2010
- once(event: "exit", listener: ExitListener): this;
2011
- once(event: "rejectionHandled", listener: RejectionHandledListener): this;
2012
- once(event: "uncaughtException", listener: UncaughtExceptionListener): this;
2013
- once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
2014
- once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
2015
- once(event: "warning", listener: WarningListener): this;
2016
- once(event: "message", listener: MessageListener): this;
2017
- once(event: Signals, listener: SignalsListener): this;
2018
- once(event: "multipleResolves", listener: MultipleResolveListener): this;
2019
- once(event: "worker", listener: WorkerListener): this;
2020
- once(event: "workerMessage", listener: (value: any, source: number) => void): this;
2021
- once(event: string | symbol, listener: (...args: any[]) => void): this;
2022
- prependListener(event: "beforeExit", listener: BeforeExitListener): this;
2023
- prependListener(event: "disconnect", listener: DisconnectListener): this;
2024
- prependListener(event: "exit", listener: ExitListener): this;
2025
- prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
2026
- prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
2027
- prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
2028
- prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
2029
- prependListener(event: "warning", listener: WarningListener): this;
2030
- prependListener(event: "message", listener: MessageListener): this;
2031
- prependListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
2032
- prependListener(event: Signals, listener: SignalsListener): this;
2033
- prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
2034
- prependListener(event: "worker", listener: WorkerListener): this;
2035
- prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
2036
- prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
2037
- prependOnceListener(event: "exit", listener: ExitListener): this;
2038
- prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
2039
- prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
2040
- prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
2041
- prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
2042
- prependOnceListener(event: "warning", listener: WarningListener): this;
2043
- prependOnceListener(event: "message", listener: MessageListener): this;
2044
- prependOnceListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
2045
- prependOnceListener(event: Signals, listener: SignalsListener): this;
2046
- prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
2047
- prependOnceListener(event: "worker", listener: WorkerListener): this;
2048
- listeners(event: "beforeExit"): BeforeExitListener[];
2049
- listeners(event: "disconnect"): DisconnectListener[];
2050
- listeners(event: "exit"): ExitListener[];
2051
- listeners(event: "rejectionHandled"): RejectionHandledListener[];
2052
- listeners(event: "uncaughtException"): UncaughtExceptionListener[];
2053
- listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[];
2054
- listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
2055
- listeners(event: "warning"): WarningListener[];
2056
- listeners(event: "message"): MessageListener[];
2057
- listeners(event: "workerMessage"): ((value: any, source: number) => void)[];
2058
- listeners(event: Signals): SignalsListener[];
2059
- listeners(event: "multipleResolves"): MultipleResolveListener[];
2060
- listeners(event: "worker"): WorkerListener[];
2061
2084
  }
2062
2085
  }
2063
2086
  }
2064
2087
  export = process;
2065
2088
  }
2066
- declare module "node:process" {
2067
- import process = require("process");
2089
+ declare module "process" {
2090
+ import process = require("node:process");
2068
2091
  export = process;
2069
2092
  }
@@ -23,10 +23,10 @@
23
23
  * The `punycode` module is a third-party dependency used by Node.js and
24
24
  * made available to developers as a convenience. Fixes or other modifications to
25
25
  * 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)
26
+ * @deprecated
27
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/punycode.js)
28
28
  */
29
- declare module "punycode" {
29
+ declare module "node:punycode" {
30
30
  /**
31
31
  * The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only
32
32
  * characters to the equivalent string of Unicode codepoints.
@@ -112,6 +112,6 @@ declare module "punycode" {
112
112
  */
113
113
  const version: string;
114
114
  }
115
- declare module "node:punycode" {
116
- export * from "punycode";
115
+ declare module "punycode" {
116
+ export * from "node:punycode";
117
117
  }
@@ -9,9 +9,9 @@
9
9
  * `querystring` is more performant than `URLSearchParams` but is not a
10
10
  * standardized API. Use `URLSearchParams` when performance is not critical or
11
11
  * when compatibility with browser code is desirable.
12
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/querystring.js)
12
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/querystring.js)
13
13
  */
14
- declare module "querystring" {
14
+ declare module "node:querystring" {
15
15
  interface StringifyOptions {
16
16
  /**
17
17
  * The function to use when converting URL-unsafe characters to percent-encoding in the query string.
@@ -147,6 +147,6 @@ declare module "querystring" {
147
147
  */
148
148
  function unescape(str: string): string;
149
149
  }
150
- declare module "node:querystring" {
151
- export * from "querystring";
150
+ declare module "querystring" {
151
+ export * from "node:querystring";
152
152
  }