omegon 0.8.4 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/extensions/cleave/dispatcher.ts +213 -20
  2. package/extensions/cleave/rpc-child.ts +269 -0
  3. package/extensions/cleave/types.ts +52 -0
  4. package/node_modules/@types/node/README.md +3 -3
  5. package/node_modules/@types/node/assert/strict.d.ts +11 -5
  6. package/node_modules/@types/node/assert.d.ts +173 -50
  7. package/node_modules/@types/node/async_hooks.d.ts +8 -28
  8. package/node_modules/@types/node/buffer.buffer.d.ts +7 -1
  9. package/node_modules/@types/node/buffer.d.ts +168 -44
  10. package/node_modules/@types/node/child_process.d.ts +70 -27
  11. package/node_modules/@types/node/cluster.d.ts +332 -240
  12. package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
  13. package/node_modules/@types/node/compatibility/index.d.ts +9 -0
  14. package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  15. package/node_modules/@types/node/compatibility/iterators.d.ts +0 -1
  16. package/node_modules/@types/node/console.d.ts +350 -49
  17. package/node_modules/@types/node/constants.d.ts +4 -3
  18. package/node_modules/@types/node/crypto.d.ts +1110 -630
  19. package/node_modules/@types/node/dgram.d.ts +51 -15
  20. package/node_modules/@types/node/diagnostics_channel.d.ts +6 -4
  21. package/node_modules/@types/node/dns/promises.d.ts +4 -4
  22. package/node_modules/@types/node/dns.d.ts +133 -132
  23. package/node_modules/@types/node/domain.d.ts +17 -13
  24. package/node_modules/@types/node/events.d.ts +663 -734
  25. package/node_modules/@types/node/fs/promises.d.ts +9 -43
  26. package/node_modules/@types/node/fs.d.ts +411 -628
  27. package/node_modules/@types/node/globals.d.ts +30 -8
  28. package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
  29. package/node_modules/@types/node/http.d.ts +265 -364
  30. package/node_modules/@types/node/http2.d.ts +715 -551
  31. package/node_modules/@types/node/https.d.ts +239 -65
  32. package/node_modules/@types/node/index.d.ts +6 -24
  33. package/node_modules/@types/node/inspector.d.ts +53 -69
  34. package/node_modules/@types/node/inspector.generated.d.ts +410 -759
  35. package/node_modules/@types/node/module.d.ts +186 -52
  36. package/node_modules/@types/node/net.d.ts +194 -70
  37. package/node_modules/@types/node/os.d.ts +11 -12
  38. package/node_modules/@types/node/package.json +3 -13
  39. package/node_modules/@types/node/path.d.ts +133 -120
  40. package/node_modules/@types/node/perf_hooks.d.ts +643 -318
  41. package/node_modules/@types/node/process.d.ts +132 -223
  42. package/node_modules/@types/node/punycode.d.ts +5 -5
  43. package/node_modules/@types/node/querystring.d.ts +4 -4
  44. package/node_modules/@types/node/readline/promises.d.ts +3 -3
  45. package/node_modules/@types/node/readline.d.ts +120 -68
  46. package/node_modules/@types/node/repl.d.ts +100 -87
  47. package/node_modules/@types/node/sea.d.ts +1 -10
  48. package/node_modules/@types/node/sqlite.d.ts +19 -363
  49. package/node_modules/@types/node/stream/consumers.d.ts +10 -10
  50. package/node_modules/@types/node/stream/promises.d.ts +15 -136
  51. package/node_modules/@types/node/stream/web.d.ts +502 -176
  52. package/node_modules/@types/node/stream.d.ts +475 -581
  53. package/node_modules/@types/node/string_decoder.d.ts +4 -4
  54. package/node_modules/@types/node/test.d.ts +196 -308
  55. package/node_modules/@types/node/timers/promises.d.ts +4 -4
  56. package/node_modules/@types/node/timers.d.ts +132 -4
  57. package/node_modules/@types/node/tls.d.ts +226 -110
  58. package/node_modules/@types/node/trace_events.d.ts +9 -9
  59. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +7 -1
  60. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
  61. package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
  62. package/node_modules/@types/node/tty.d.ts +16 -58
  63. package/node_modules/@types/node/url.d.ts +573 -130
  64. package/node_modules/@types/node/util.d.ts +1100 -181
  65. package/node_modules/@types/node/v8.d.ts +8 -76
  66. package/node_modules/@types/node/vm.d.ts +72 -280
  67. package/node_modules/@types/node/wasi.d.ts +4 -25
  68. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
  69. package/node_modules/@types/node/web-globals/events.d.ts +0 -9
  70. package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
  71. package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
  72. package/node_modules/@types/node/worker_threads.d.ts +335 -268
  73. package/node_modules/@types/node/zlib.d.ts +74 -9
  74. package/node_modules/undici-types/agent.d.ts +12 -13
  75. package/node_modules/undici-types/api.d.ts +26 -26
  76. package/node_modules/undici-types/balanced-pool.d.ts +12 -13
  77. package/node_modules/undici-types/client.d.ts +19 -19
  78. package/node_modules/undici-types/connector.d.ts +2 -2
  79. package/node_modules/undici-types/cookies.d.ts +0 -2
  80. package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
  81. package/node_modules/undici-types/dispatcher.d.ts +103 -123
  82. package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
  83. package/node_modules/undici-types/errors.d.ts +54 -66
  84. package/node_modules/undici-types/eventsource.d.ts +4 -9
  85. package/node_modules/undici-types/fetch.d.ts +20 -22
  86. package/node_modules/undici-types/file.d.ts +39 -0
  87. package/node_modules/undici-types/filereader.d.ts +54 -0
  88. package/node_modules/undici-types/formdata.d.ts +7 -7
  89. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  90. package/node_modules/undici-types/global-origin.d.ts +5 -5
  91. package/node_modules/undici-types/handlers.d.ts +8 -8
  92. package/node_modules/undici-types/header.d.ts +1 -157
  93. package/node_modules/undici-types/index.d.ts +47 -64
  94. package/node_modules/undici-types/interceptors.d.ts +8 -64
  95. package/node_modules/undici-types/mock-agent.d.ts +18 -36
  96. package/node_modules/undici-types/mock-client.d.ts +4 -6
  97. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  98. package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
  99. package/node_modules/undici-types/mock-pool.d.ts +4 -6
  100. package/node_modules/undici-types/package.json +1 -1
  101. package/node_modules/undici-types/patch.d.ts +4 -0
  102. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  103. package/node_modules/undici-types/pool.d.ts +13 -15
  104. package/node_modules/undici-types/proxy-agent.d.ts +4 -5
  105. package/node_modules/undici-types/readable.d.ts +16 -19
  106. package/node_modules/undici-types/retry-agent.d.ts +1 -1
  107. package/node_modules/undici-types/retry-handler.d.ts +10 -19
  108. package/node_modules/undici-types/util.d.ts +3 -3
  109. package/node_modules/undici-types/webidl.d.ts +29 -142
  110. package/node_modules/undici-types/websocket.d.ts +10 -46
  111. package/package.json +2 -1
  112. package/skills/cleave/SKILL.md +62 -2
  113. package/node_modules/@types/node/inspector/promises.d.ts +0 -41
  114. package/node_modules/@types/node/path/posix.d.ts +0 -8
  115. package/node_modules/@types/node/path/win32.d.ts +0 -8
  116. package/node_modules/@types/node/quic.d.ts +0 -910
  117. package/node_modules/@types/node/test/reporters.d.ts +0 -96
  118. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  119. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  120. package/node_modules/@types/node/ts5.7/index.d.ts +0 -117
  121. package/node_modules/@types/node/util/types.d.ts +0 -558
  122. package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  123. package/node_modules/@types/node/web-globals/console.d.ts +0 -9
  124. package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  125. package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  126. package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  127. package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  128. package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  129. package/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  130. package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  131. package/node_modules/@types/node/web-globals/url.d.ts +0 -24
  132. package/node_modules/undici-types/cache-interceptor.d.ts +0 -173
  133. package/node_modules/undici-types/client-stats.d.ts +0 -15
  134. package/node_modules/undici-types/h2c-client.d.ts +0 -73
  135. package/node_modules/undici-types/mock-call-history.d.ts +0 -111
  136. package/node_modules/undici-types/round-robin-pool.d.ts +0 -41
  137. package/node_modules/undici-types/snapshot-agent.d.ts +0 -109
  138. package/node_modules/undici-types/utility.d.ts +0 -7
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/latest-v25.x/api/stream.html#readable-streams) stream
3
- * (such as [`process.stdin`](https://nodejs.org/docs/latest-v25.x/api/process.html#processstdin)) one line at a time.
2
+ * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream
3
+ * (such as [`process.stdin`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstdin)) one line at a time.
4
4
  *
5
5
  * To use the promise-based APIs:
6
6
  *
@@ -31,59 +31,27 @@
31
31
  *
32
32
  * Once this code is invoked, the Node.js application will not terminate until the `readline.Interface` is closed because the interface waits for data to be
33
33
  * received on the `input` stream.
34
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/readline.js)
34
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/readline.js)
35
35
  */
36
- declare module "node:readline" {
37
- import { Abortable, EventEmitter, InternalEventEmitter } from "node:events";
38
- interface Key {
36
+ declare module "readline" {
37
+ import { Abortable, EventEmitter } from "node:events";
38
+ import * as promises from "node:readline/promises";
39
+ export { promises };
40
+ export interface Key {
39
41
  sequence?: string | undefined;
40
42
  name?: string | undefined;
41
43
  ctrl?: boolean | undefined;
42
44
  meta?: boolean | undefined;
43
45
  shift?: boolean | undefined;
44
46
  }
45
- interface InterfaceEventMap {
46
- "close": [];
47
- "error": [error: Error];
48
- "history": [history: string[]];
49
- "line": [input: string];
50
- "pause": [];
51
- "resume": [];
52
- "SIGCONT": [];
53
- "SIGINT": [];
54
- "SIGTSTP": [];
55
- }
56
47
  /**
57
48
  * Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a
58
- * single `input` [Readable](https://nodejs.org/docs/latest-v25.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/latest-v25.x/api/stream.html#writable-streams) stream.
49
+ * single `input` [Readable](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/latest-v22.x/api/stream.html#writable-streams) stream.
59
50
  * The `output` stream is used to print prompts for user input that arrives on,
60
51
  * and is read from, the `input` stream.
61
52
  * @since v0.1.104
62
53
  */
63
- class Interface implements EventEmitter, Disposable {
64
- /**
65
- * NOTE: According to the documentation:
66
- *
67
- * > Instances of the `readline.Interface` class are constructed using the
68
- * > `readline.createInterface()` method.
69
- *
70
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/readline.html#class-interfaceconstructor
71
- */
72
- protected constructor(
73
- input: NodeJS.ReadableStream,
74
- output?: NodeJS.WritableStream,
75
- completer?: Completer | AsyncCompleter,
76
- terminal?: boolean,
77
- );
78
- /**
79
- * NOTE: According to the documentation:
80
- *
81
- * > Instances of the `readline.Interface` class are constructed using the
82
- * > `readline.createInterface()` method.
83
- *
84
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/readline.html#class-interfaceconstructor
85
- */
86
- protected constructor(options: ReadLineOptions);
54
+ export class Interface extends EventEmitter implements Disposable {
87
55
  readonly terminal: boolean;
88
56
  /**
89
57
  * The current input data being processed by node.
@@ -126,6 +94,29 @@ declare module "node:readline" {
126
94
  * @since v0.1.98
127
95
  */
128
96
  readonly cursor: number;
97
+ /**
98
+ * NOTE: According to the documentation:
99
+ *
100
+ * > Instances of the `readline.Interface` class are constructed using the
101
+ * > `readline.createInterface()` method.
102
+ *
103
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/readline.html#class-interfaceconstructor
104
+ */
105
+ protected constructor(
106
+ input: NodeJS.ReadableStream,
107
+ output?: NodeJS.WritableStream,
108
+ completer?: Completer | AsyncCompleter,
109
+ terminal?: boolean,
110
+ );
111
+ /**
112
+ * NOTE: According to the documentation:
113
+ *
114
+ * > Instances of the `readline.Interface` class are constructed using the
115
+ * > `readline.createInterface()` method.
116
+ *
117
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/readline.html#class-interfaceconstructor
118
+ */
119
+ protected constructor(options: ReadLineOptions);
129
120
  /**
130
121
  * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`.
131
122
  * @since v15.3.0, v14.17.0
@@ -253,23 +244,87 @@ declare module "node:readline" {
253
244
  * @since v13.5.0, v12.16.0
254
245
  */
255
246
  getCursorPos(): CursorPos;
247
+ /**
248
+ * events.EventEmitter
249
+ * 1. close
250
+ * 2. line
251
+ * 3. pause
252
+ * 4. resume
253
+ * 5. SIGCONT
254
+ * 6. SIGINT
255
+ * 7. SIGTSTP
256
+ * 8. history
257
+ */
258
+ addListener(event: string, listener: (...args: any[]) => void): this;
259
+ addListener(event: "close", listener: () => void): this;
260
+ addListener(event: "line", listener: (input: string) => void): this;
261
+ addListener(event: "pause", listener: () => void): this;
262
+ addListener(event: "resume", listener: () => void): this;
263
+ addListener(event: "SIGCONT", listener: () => void): this;
264
+ addListener(event: "SIGINT", listener: () => void): this;
265
+ addListener(event: "SIGTSTP", listener: () => void): this;
266
+ addListener(event: "history", listener: (history: string[]) => void): this;
267
+ emit(event: string | symbol, ...args: any[]): boolean;
268
+ emit(event: "close"): boolean;
269
+ emit(event: "line", input: string): boolean;
270
+ emit(event: "pause"): boolean;
271
+ emit(event: "resume"): boolean;
272
+ emit(event: "SIGCONT"): boolean;
273
+ emit(event: "SIGINT"): boolean;
274
+ emit(event: "SIGTSTP"): boolean;
275
+ emit(event: "history", history: string[]): boolean;
276
+ on(event: string, listener: (...args: any[]) => void): this;
277
+ on(event: "close", listener: () => void): this;
278
+ on(event: "line", listener: (input: string) => void): this;
279
+ on(event: "pause", listener: () => void): this;
280
+ on(event: "resume", listener: () => void): this;
281
+ on(event: "SIGCONT", listener: () => void): this;
282
+ on(event: "SIGINT", listener: () => void): this;
283
+ on(event: "SIGTSTP", listener: () => void): this;
284
+ on(event: "history", listener: (history: string[]) => void): this;
285
+ once(event: string, listener: (...args: any[]) => void): this;
286
+ once(event: "close", listener: () => void): this;
287
+ once(event: "line", listener: (input: string) => void): this;
288
+ once(event: "pause", listener: () => void): this;
289
+ once(event: "resume", listener: () => void): this;
290
+ once(event: "SIGCONT", listener: () => void): this;
291
+ once(event: "SIGINT", listener: () => void): this;
292
+ once(event: "SIGTSTP", listener: () => void): this;
293
+ once(event: "history", listener: (history: string[]) => void): this;
294
+ prependListener(event: string, listener: (...args: any[]) => void): this;
295
+ prependListener(event: "close", listener: () => void): this;
296
+ prependListener(event: "line", listener: (input: string) => void): this;
297
+ prependListener(event: "pause", listener: () => void): this;
298
+ prependListener(event: "resume", listener: () => void): this;
299
+ prependListener(event: "SIGCONT", listener: () => void): this;
300
+ prependListener(event: "SIGINT", listener: () => void): this;
301
+ prependListener(event: "SIGTSTP", listener: () => void): this;
302
+ prependListener(event: "history", listener: (history: string[]) => void): this;
303
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
304
+ prependOnceListener(event: "close", listener: () => void): this;
305
+ prependOnceListener(event: "line", listener: (input: string) => void): this;
306
+ prependOnceListener(event: "pause", listener: () => void): this;
307
+ prependOnceListener(event: "resume", listener: () => void): this;
308
+ prependOnceListener(event: "SIGCONT", listener: () => void): this;
309
+ prependOnceListener(event: "SIGINT", listener: () => void): this;
310
+ prependOnceListener(event: "SIGTSTP", listener: () => void): this;
311
+ prependOnceListener(event: "history", listener: (history: string[]) => void): this;
256
312
  [Symbol.asyncIterator](): NodeJS.AsyncIterator<string>;
257
313
  }
258
- interface Interface extends InternalEventEmitter<InterfaceEventMap> {}
259
- type ReadLine = Interface; // type forwarded for backwards compatibility
260
- type Completer = (line: string) => CompleterResult;
261
- type AsyncCompleter = (
314
+ export type ReadLine = Interface; // type forwarded for backwards compatibility
315
+ export type Completer = (line: string) => CompleterResult;
316
+ export type AsyncCompleter = (
262
317
  line: string,
263
318
  callback: (err?: null | Error, result?: CompleterResult) => void,
264
319
  ) => void;
265
- type CompleterResult = [string[], string];
266
- interface ReadLineOptions {
320
+ export type CompleterResult = [string[], string];
321
+ export interface ReadLineOptions {
267
322
  /**
268
- * The [`Readable`](https://nodejs.org/docs/latest-v25.x/api/stream.html#readable-streams) stream to listen to
323
+ * The [`Readable`](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream to listen to
269
324
  */
270
325
  input: NodeJS.ReadableStream;
271
326
  /**
272
- * The [`Writable`](https://nodejs.org/docs/latest-v25.x/api/stream.html#writable-streams) stream to write readline data to.
327
+ * The [`Writable`](https://nodejs.org/docs/latest-v22.x/api/stream.html#writable-streams) stream to write readline data to.
273
328
  */
274
329
  output?: NodeJS.WritableStream | undefined;
275
330
  /**
@@ -314,7 +369,7 @@ declare module "node:readline" {
314
369
  * `crlfDelay` will be coerced to a number no less than `100`.
315
370
  * It can be set to `Infinity`, in which case
316
371
  * `\r` followed by `\n` will always be considered a single newline
317
- * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v25.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
372
+ * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v22.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
318
373
  * @default 100
319
374
  */
320
375
  crlfDelay?: number | undefined;
@@ -367,13 +422,13 @@ declare module "node:readline" {
367
422
  * waiting for user input, call `process.stdin.unref()`.
368
423
  * @since v0.1.98
369
424
  */
370
- function createInterface(
425
+ export function createInterface(
371
426
  input: NodeJS.ReadableStream,
372
427
  output?: NodeJS.WritableStream,
373
428
  completer?: Completer | AsyncCompleter,
374
429
  terminal?: boolean,
375
430
  ): Interface;
376
- function createInterface(options: ReadLineOptions): Interface;
431
+ export function createInterface(options: ReadLineOptions): Interface;
377
432
  /**
378
433
  * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input.
379
434
  *
@@ -495,48 +550,45 @@ declare module "node:readline" {
495
550
  * ```
496
551
  * @since v0.7.7
497
552
  */
498
- function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void;
499
- type Direction = -1 | 0 | 1;
500
- interface CursorPos {
553
+ export function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void;
554
+ export type Direction = -1 | 0 | 1;
555
+ export interface CursorPos {
501
556
  rows: number;
502
557
  cols: number;
503
558
  }
504
559
  /**
505
- * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/latest-v25.x/api/tty.html) stream
560
+ * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) stream
506
561
  * in a specified direction identified by `dir`.
507
562
  * @since v0.7.7
508
563
  * @param callback Invoked once the operation completes.
509
564
  * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
510
565
  */
511
- function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
566
+ export function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
512
567
  /**
513
- * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/latest-v25.x/api/tty.html) stream from
568
+ * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) stream from
514
569
  * the current position of the cursor down.
515
570
  * @since v0.7.7
516
571
  * @param callback Invoked once the operation completes.
517
572
  * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
518
573
  */
519
- function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
574
+ export function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
520
575
  /**
521
576
  * The `readline.cursorTo()` method moves cursor to the specified position in a
522
- * given [TTY](https://nodejs.org/docs/latest-v25.x/api/tty.html) `stream`.
577
+ * given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) `stream`.
523
578
  * @since v0.7.7
524
579
  * @param callback Invoked once the operation completes.
525
580
  * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
526
581
  */
527
- function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
582
+ export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
528
583
  /**
529
584
  * The `readline.moveCursor()` method moves the cursor _relative_ to its current
530
- * position in a given [TTY](https://nodejs.org/docs/latest-v25.x/api/tty.html) `stream`.
585
+ * position in a given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) `stream`.
531
586
  * @since v0.7.7
532
587
  * @param callback Invoked once the operation completes.
533
588
  * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
534
589
  */
535
- function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
590
+ export function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
536
591
  }
537
592
  declare module "node:readline" {
538
- export * as promises from "node:readline/promises";
539
- }
540
- declare module "readline" {
541
- export * from "node:readline";
593
+ export * from "readline";
542
594
  }
@@ -6,12 +6,12 @@
6
6
  * ```js
7
7
  * import repl from 'node:repl';
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/repl.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/repl.js)
10
10
  */
11
- declare module "node:repl" {
12
- import { AsyncCompleter, Completer, Interface, InterfaceEventMap } from "node:readline";
13
- import { InspectOptions } from "node:util";
11
+ declare module "repl" {
12
+ import { AsyncCompleter, Completer, Interface } from "node:readline";
14
13
  import { Context } from "node:vm";
14
+ import { InspectOptions } from "node:util";
15
15
  interface ReplOptions {
16
16
  /**
17
17
  * The input prompt to display.
@@ -39,7 +39,7 @@ declare module "node:repl" {
39
39
  * The function to be used when evaluating each given line of input.
40
40
  * **Default:** an async wrapper for the JavaScript `eval()` function. An `eval` function can
41
41
  * error with `repl.Recoverable` to indicate the input was incomplete and prompt for
42
- * additional lines. See the [custom evaluation functions](https://nodejs.org/dist/latest-v25.x/docs/api/repl.html#custom-evaluation-functions)
42
+ * additional lines. See the [custom evaluation functions](https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#custom-evaluation-functions)
43
43
  * section for more details.
44
44
  */
45
45
  eval?: REPLEval | undefined;
@@ -72,13 +72,13 @@ declare module "node:repl" {
72
72
  * The function to invoke to format the output of each command before writing to `output`.
73
73
  * @default a wrapper for `util.inspect`
74
74
  *
75
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/repl.html#repl_customizing_repl_output
75
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_customizing_repl_output
76
76
  */
77
77
  writer?: REPLWriter | undefined;
78
78
  /**
79
79
  * An optional function used for custom Tab auto completion.
80
80
  *
81
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/readline.html#readline_use_of_the_completer_function
81
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/readline.html#readline_use_of_the_completer_function
82
82
  */
83
83
  completer?: Completer | AsyncCompleter | undefined;
84
84
  /**
@@ -123,16 +123,6 @@ declare module "node:repl" {
123
123
  */
124
124
  action: REPLCommandAction;
125
125
  }
126
- interface REPLServerSetupHistoryOptions {
127
- filePath?: string | undefined;
128
- size?: number | undefined;
129
- removeHistoryDuplicates?: boolean | undefined;
130
- onHistoryFileLoaded?: ((err: Error | null, repl: REPLServer) => void) | undefined;
131
- }
132
- interface REPLServerEventMap extends InterfaceEventMap {
133
- "exit": [];
134
- "reset": [context: Context];
135
- }
136
126
  /**
137
127
  * Instances of `repl.REPLServer` are created using the {@link start} method
138
128
  * or directly using the JavaScript `new` keyword.
@@ -148,17 +138,6 @@ declare module "node:repl" {
148
138
  * @since v0.1.91
149
139
  */
150
140
  class REPLServer extends Interface {
151
- /**
152
- * NOTE: According to the documentation:
153
- *
154
- * > Instances of `repl.REPLServer` are created using the `repl.start()` method and
155
- * > _should not_ be created directly using the JavaScript `new` keyword.
156
- *
157
- * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS.
158
- *
159
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/repl.html#repl_class_replserver
160
- */
161
- private constructor();
162
141
  /**
163
142
  * The `vm.Context` provided to the `eval` function to be used for JavaScript
164
143
  * evaluation.
@@ -187,33 +166,33 @@ declare module "node:repl" {
187
166
  /**
188
167
  * A value indicating whether the REPL is currently in "editor mode".
189
168
  *
190
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/repl.html#repl_commands_and_special_keys
169
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_commands_and_special_keys
191
170
  */
192
171
  readonly editorMode: boolean;
193
172
  /**
194
173
  * A value indicating whether the `_` variable has been assigned.
195
174
  *
196
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
175
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
197
176
  */
198
177
  readonly underscoreAssigned: boolean;
199
178
  /**
200
179
  * The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL).
201
180
  *
202
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
181
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
203
182
  */
204
183
  readonly last: any;
205
184
  /**
206
185
  * A value indicating whether the `_error` variable has been assigned.
207
186
  *
208
187
  * @since v9.8.0
209
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
188
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
210
189
  */
211
190
  readonly underscoreErrAssigned: boolean;
212
191
  /**
213
192
  * The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL).
214
193
  *
215
194
  * @since v9.8.0
216
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
195
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
217
196
  */
218
197
  readonly lastError: any;
219
198
  /**
@@ -257,6 +236,17 @@ declare module "node:repl" {
257
236
  * prefacing every repl statement with `'use strict'`.
258
237
  */
259
238
  readonly replMode: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT;
239
+ /**
240
+ * NOTE: According to the documentation:
241
+ *
242
+ * > Instances of `repl.REPLServer` are created using the `repl.start()` method and
243
+ * > _should not_ be created directly using the JavaScript `new` keyword.
244
+ *
245
+ * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS.
246
+ *
247
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_class_replserver
248
+ */
249
+ private constructor();
260
250
  /**
261
251
  * The `replServer.defineCommand()` method is used to add new `.`\-prefixed commands
262
252
  * to the REPL instance. Such commands are invoked by typing a `.` followed by the `keyword`. The `cmd` is either a `Function` or an `Object` with the following
@@ -299,7 +289,7 @@ declare module "node:repl" {
299
289
  * The `replServer.displayPrompt()` method readies the REPL instance for input
300
290
  * from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input.
301
291
  *
302
- * When multi-line input is being entered, a pipe `'|'` is printed rather than the
292
+ * When multi-line input is being entered, an ellipsis is printed rather than the
303
293
  * 'prompt'.
304
294
  *
305
295
  * When `preserveCursor` is `true`, the cursor placement will not be reset to `0`.
@@ -326,56 +316,79 @@ declare module "node:repl" {
326
316
  * @param historyPath the path to the history file
327
317
  * @param callback called when history writes are ready or upon error
328
318
  */
329
- setupHistory(historyPath: string, callback: (err: Error | null, repl: this) => void): void;
330
- setupHistory(
331
- historyConfig?: REPLServerSetupHistoryOptions,
332
- callback?: (err: Error | null, repl: this) => void,
333
- ): void;
334
- // #region InternalEventEmitter
335
- addListener<E extends keyof REPLServerEventMap>(
336
- eventName: E,
337
- listener: (...args: REPLServerEventMap[E]) => void,
338
- ): this;
339
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
340
- emit<E extends keyof REPLServerEventMap>(eventName: E, ...args: REPLServerEventMap[E]): boolean;
341
- emit(eventName: string | symbol, ...args: any[]): boolean;
342
- listenerCount<E extends keyof REPLServerEventMap>(
343
- eventName: E,
344
- listener?: (...args: REPLServerEventMap[E]) => void,
345
- ): number;
346
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
347
- listeners<E extends keyof REPLServerEventMap>(eventName: E): ((...args: REPLServerEventMap[E]) => void)[];
348
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
349
- off<E extends keyof REPLServerEventMap>(eventName: E, listener: (...args: REPLServerEventMap[E]) => void): this;
350
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
351
- on<E extends keyof REPLServerEventMap>(eventName: E, listener: (...args: REPLServerEventMap[E]) => void): this;
352
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
353
- once<E extends keyof REPLServerEventMap>(
354
- eventName: E,
355
- listener: (...args: REPLServerEventMap[E]) => void,
356
- ): this;
357
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
358
- prependListener<E extends keyof REPLServerEventMap>(
359
- eventName: E,
360
- listener: (...args: REPLServerEventMap[E]) => void,
361
- ): this;
362
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
363
- prependOnceListener<E extends keyof REPLServerEventMap>(
364
- eventName: E,
365
- listener: (...args: REPLServerEventMap[E]) => void,
366
- ): this;
367
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
368
- rawListeners<E extends keyof REPLServerEventMap>(eventName: E): ((...args: REPLServerEventMap[E]) => void)[];
369
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
370
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
371
- removeAllListeners<E extends keyof REPLServerEventMap>(eventName?: E): this;
372
- removeAllListeners(eventName?: string | symbol): this;
373
- removeListener<E extends keyof REPLServerEventMap>(
374
- eventName: E,
375
- listener: (...args: REPLServerEventMap[E]) => void,
376
- ): this;
377
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
378
- // #endregion
319
+ setupHistory(path: string, callback: (err: Error | null, repl: this) => void): void;
320
+ /**
321
+ * events.EventEmitter
322
+ * 1. close - inherited from `readline.Interface`
323
+ * 2. line - inherited from `readline.Interface`
324
+ * 3. pause - inherited from `readline.Interface`
325
+ * 4. resume - inherited from `readline.Interface`
326
+ * 5. SIGCONT - inherited from `readline.Interface`
327
+ * 6. SIGINT - inherited from `readline.Interface`
328
+ * 7. SIGTSTP - inherited from `readline.Interface`
329
+ * 8. exit
330
+ * 9. reset
331
+ */
332
+ addListener(event: string, listener: (...args: any[]) => void): this;
333
+ addListener(event: "close", listener: () => void): this;
334
+ addListener(event: "line", listener: (input: string) => void): this;
335
+ addListener(event: "pause", listener: () => void): this;
336
+ addListener(event: "resume", listener: () => void): this;
337
+ addListener(event: "SIGCONT", listener: () => void): this;
338
+ addListener(event: "SIGINT", listener: () => void): this;
339
+ addListener(event: "SIGTSTP", listener: () => void): this;
340
+ addListener(event: "exit", listener: () => void): this;
341
+ addListener(event: "reset", listener: (context: Context) => void): this;
342
+ emit(event: string | symbol, ...args: any[]): boolean;
343
+ emit(event: "close"): boolean;
344
+ emit(event: "line", input: string): boolean;
345
+ emit(event: "pause"): boolean;
346
+ emit(event: "resume"): boolean;
347
+ emit(event: "SIGCONT"): boolean;
348
+ emit(event: "SIGINT"): boolean;
349
+ emit(event: "SIGTSTP"): boolean;
350
+ emit(event: "exit"): boolean;
351
+ emit(event: "reset", context: Context): boolean;
352
+ on(event: string, listener: (...args: any[]) => void): this;
353
+ on(event: "close", listener: () => void): this;
354
+ on(event: "line", listener: (input: string) => void): this;
355
+ on(event: "pause", listener: () => void): this;
356
+ on(event: "resume", listener: () => void): this;
357
+ on(event: "SIGCONT", listener: () => void): this;
358
+ on(event: "SIGINT", listener: () => void): this;
359
+ on(event: "SIGTSTP", listener: () => void): this;
360
+ on(event: "exit", listener: () => void): this;
361
+ on(event: "reset", listener: (context: Context) => void): this;
362
+ once(event: string, listener: (...args: any[]) => void): this;
363
+ once(event: "close", listener: () => void): this;
364
+ once(event: "line", listener: (input: string) => void): this;
365
+ once(event: "pause", listener: () => void): this;
366
+ once(event: "resume", listener: () => void): this;
367
+ once(event: "SIGCONT", listener: () => void): this;
368
+ once(event: "SIGINT", listener: () => void): this;
369
+ once(event: "SIGTSTP", listener: () => void): this;
370
+ once(event: "exit", listener: () => void): this;
371
+ once(event: "reset", listener: (context: Context) => void): this;
372
+ prependListener(event: string, listener: (...args: any[]) => void): this;
373
+ prependListener(event: "close", listener: () => void): this;
374
+ prependListener(event: "line", listener: (input: string) => void): this;
375
+ prependListener(event: "pause", listener: () => void): this;
376
+ prependListener(event: "resume", listener: () => void): this;
377
+ prependListener(event: "SIGCONT", listener: () => void): this;
378
+ prependListener(event: "SIGINT", listener: () => void): this;
379
+ prependListener(event: "SIGTSTP", listener: () => void): this;
380
+ prependListener(event: "exit", listener: () => void): this;
381
+ prependListener(event: "reset", listener: (context: Context) => void): this;
382
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
383
+ prependOnceListener(event: "close", listener: () => void): this;
384
+ prependOnceListener(event: "line", listener: (input: string) => void): this;
385
+ prependOnceListener(event: "pause", listener: () => void): this;
386
+ prependOnceListener(event: "resume", listener: () => void): this;
387
+ prependOnceListener(event: "SIGCONT", listener: () => void): this;
388
+ prependOnceListener(event: "SIGINT", listener: () => void): this;
389
+ prependOnceListener(event: "SIGTSTP", listener: () => void): this;
390
+ prependOnceListener(event: "exit", listener: () => void): this;
391
+ prependOnceListener(event: "reset", listener: (context: Context) => void): this;
379
392
  }
380
393
  /**
381
394
  * A flag passed in the REPL options. Evaluates expressions in sloppy mode.
@@ -403,13 +416,13 @@ declare module "node:repl" {
403
416
  /**
404
417
  * Indicates a recoverable error that a `REPLServer` can use to support multi-line input.
405
418
  *
406
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/repl.html#repl_recoverable_errors
419
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_recoverable_errors
407
420
  */
408
421
  class Recoverable extends SyntaxError {
409
422
  err: Error;
410
423
  constructor(err: Error);
411
424
  }
412
425
  }
413
- declare module "repl" {
414
- export * from "node:repl";
426
+ declare module "node:repl" {
427
+ export * from "repl";
415
428
  }
@@ -111,7 +111,7 @@
111
111
  * ```
112
112
  * @since v19.7.0, v18.16.0
113
113
  * @experimental
114
- * @see [source](https://github.com/nodejs/node/blob/v25.x/src/node_sea.cc)
114
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/src/node_sea.cc)
115
115
  */
116
116
  declare module "node:sea" {
117
117
  type AssetKey = string;
@@ -150,13 +150,4 @@ declare module "node:sea" {
150
150
  * @since v20.12.0
151
151
  */
152
152
  function getRawAsset(key: AssetKey): ArrayBuffer;
153
- /**
154
- * This method can be used to retrieve an array of all the keys of assets
155
- * embedded into the single-executable application.
156
- * An error is thrown when not running inside a single-executable application.
157
- * @since v24.8.0
158
- * @returns An array containing all the keys of the assets
159
- * embedded in the executable. If no assets are embedded, returns an empty array.
160
- */
161
- function getAssetKeys(): string[];
162
153
  }