@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/zlib.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:zlib` module provides compression functionality implemented using
3
18
  * Gzip, Deflate/Inflate, and Brotli.
@@ -9,7 +24,7 @@
9
24
  * ```
10
25
  *
11
26
  * Compression and decompression are built around the Node.js
12
- * [Streams API](https://nodejs.org/docs/latest-v24.x/api/stream.html).
27
+ * [Streams API](https://nodejs.org/docs/latest-v25.x/api/stream.html).
13
28
  *
14
29
  * Compressing or decompressing a stream (such as a file) can be accomplished by
15
30
  * piping the source stream through a `zlib` `Transform` stream into a destination
@@ -89,10 +104,11 @@
89
104
  * });
90
105
  * ```
91
106
  * @since v0.5.8
92
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/zlib.js)
107
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/zlib.js)
93
108
  */
94
109
 
95
110
  declare module "node:zlib" {
111
+ import { NonSharedBuffer } from 'node:buffer';
96
112
  import * as stream from 'node:stream';
97
113
  interface ZlibOptions {
98
114
  /**
@@ -144,10 +160,14 @@ declare module "node:zlib" {
144
160
  }
145
161
  | undefined;
146
162
  /**
147
- * Limits output size when using [convenience methods](https://nodejs.org/docs/latest-v24.x/api/zlib.html#convenience-methods).
163
+ * Limits output size when using [convenience methods](https://nodejs.org/docs/latest-v25.x/api/zlib.html#convenience-methods).
148
164
  * @default buffer.kMaxLength
149
165
  */
150
166
  maxOutputLength?: number | undefined;
167
+ /**
168
+ * If `true`, returns an object with `buffer` and `engine`.
169
+ */
170
+ info?: boolean | undefined;
151
171
  }
152
172
  interface ZstdOptions {
153
173
  /**
@@ -164,15 +184,25 @@ declare module "node:zlib" {
164
184
  chunkSize?: number | undefined;
165
185
  /**
166
186
  * Key-value object containing indexed
167
- * [Zstd parameters](https://nodejs.org/docs/latest-v24.x/api/zlib.html#zstd-constants).
187
+ * [Zstd parameters](https://nodejs.org/docs/latest-v25.x/api/zlib.html#zstd-constants).
168
188
  */
169
189
  params?: { [key: number]: number | boolean } | undefined;
170
190
  /**
171
191
  * Limits output size when using
172
- * [convenience methods](https://nodejs.org/docs/latest-v24.x/api/zlib.html#convenience-methods).
192
+ * [convenience methods](https://nodejs.org/docs/latest-v25.x/api/zlib.html#convenience-methods).
173
193
  * @default buffer.kMaxLength
174
194
  */
175
195
  maxOutputLength?: number | undefined;
196
+ /**
197
+ * If `true`, returns an object with `buffer` and `engine`.
198
+ */
199
+ info?: boolean | undefined;
200
+ /**
201
+ * Optional dictionary used to improve compression efficiency when compressing or decompressing data that
202
+ * shares common patterns with the dictionary.
203
+ * @since v24.6.0
204
+ */
205
+ dictionary?: NodeJS.ArrayBufferView | undefined;
176
206
  }
177
207
  interface Zlib {
178
208
  readonly bytesWritten: number;
@@ -214,7 +244,7 @@ declare module "node:zlib" {
214
244
  * @returns A 32-bit unsigned integer containing the checksum.
215
245
  * @since v22.2.0
216
246
  */
217
- function crc32(data: string | Buffer | NodeJS.ArrayBufferView, value?: number): number;
247
+ function crc32(data: string | NodeJS.ArrayBufferView, value?: number): number;
218
248
  /**
219
249
  * Creates and returns a new `BrotliCompress` object.
220
250
  * @since v11.7.0, v10.16.0
@@ -278,124 +308,124 @@ declare module "node:zlib" {
278
308
  */
279
309
  function createZstdDecompress(options?: ZstdOptions): ZstdDecompress;
280
310
  type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
281
- type CompressCallback = (error: Error | null, result: Buffer) => void;
311
+ type CompressCallback = (error: Error | null, result: NonSharedBuffer) => void;
282
312
  /**
283
313
  * @since v11.7.0, v10.16.0
284
314
  */
285
315
  function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
286
316
  function brotliCompress(buf: InputType, callback: CompressCallback): void;
287
317
  namespace brotliCompress {
288
- function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
318
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
289
319
  }
290
320
  /**
291
321
  * Compress a chunk of data with `BrotliCompress`.
292
322
  * @since v11.7.0, v10.16.0
293
323
  */
294
- function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
324
+ function brotliCompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
295
325
  /**
296
326
  * @since v11.7.0, v10.16.0
297
327
  */
298
328
  function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
299
329
  function brotliDecompress(buf: InputType, callback: CompressCallback): void;
300
330
  namespace brotliDecompress {
301
- function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
331
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
302
332
  }
303
333
  /**
304
334
  * Decompress a chunk of data with `BrotliDecompress`.
305
335
  * @since v11.7.0, v10.16.0
306
336
  */
307
- function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
337
+ function brotliDecompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
308
338
  /**
309
339
  * @since v0.6.0
310
340
  */
311
341
  function deflate(buf: InputType, callback: CompressCallback): void;
312
342
  function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
313
343
  namespace deflate {
314
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
344
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
315
345
  }
316
346
  /**
317
347
  * Compress a chunk of data with `Deflate`.
318
348
  * @since v0.11.12
319
349
  */
320
- function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
350
+ function deflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
321
351
  /**
322
352
  * @since v0.6.0
323
353
  */
324
354
  function deflateRaw(buf: InputType, callback: CompressCallback): void;
325
355
  function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
326
356
  namespace deflateRaw {
327
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
357
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
328
358
  }
329
359
  /**
330
360
  * Compress a chunk of data with `DeflateRaw`.
331
361
  * @since v0.11.12
332
362
  */
333
- function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
363
+ function deflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
334
364
  /**
335
365
  * @since v0.6.0
336
366
  */
337
367
  function gzip(buf: InputType, callback: CompressCallback): void;
338
368
  function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
339
369
  namespace gzip {
340
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
370
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
341
371
  }
342
372
  /**
343
373
  * Compress a chunk of data with `Gzip`.
344
374
  * @since v0.11.12
345
375
  */
346
- function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
376
+ function gzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
347
377
  /**
348
378
  * @since v0.6.0
349
379
  */
350
380
  function gunzip(buf: InputType, callback: CompressCallback): void;
351
381
  function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
352
382
  namespace gunzip {
353
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
383
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
354
384
  }
355
385
  /**
356
386
  * Decompress a chunk of data with `Gunzip`.
357
387
  * @since v0.11.12
358
388
  */
359
- function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
389
+ function gunzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
360
390
  /**
361
391
  * @since v0.6.0
362
392
  */
363
393
  function inflate(buf: InputType, callback: CompressCallback): void;
364
394
  function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
365
395
  namespace inflate {
366
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
396
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
367
397
  }
368
398
  /**
369
399
  * Decompress a chunk of data with `Inflate`.
370
400
  * @since v0.11.12
371
401
  */
372
- function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
402
+ function inflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
373
403
  /**
374
404
  * @since v0.6.0
375
405
  */
376
406
  function inflateRaw(buf: InputType, callback: CompressCallback): void;
377
407
  function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
378
408
  namespace inflateRaw {
379
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
409
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
380
410
  }
381
411
  /**
382
412
  * Decompress a chunk of data with `InflateRaw`.
383
413
  * @since v0.11.12
384
414
  */
385
- function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
415
+ function inflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
386
416
  /**
387
417
  * @since v0.6.0
388
418
  */
389
419
  function unzip(buf: InputType, callback: CompressCallback): void;
390
420
  function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
391
421
  namespace unzip {
392
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
422
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
393
423
  }
394
424
  /**
395
425
  * Decompress a chunk of data with `Unzip`.
396
426
  * @since v0.11.12
397
427
  */
398
- function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
428
+ function unzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
399
429
  /**
400
430
  * @since v22.15.0
401
431
  * @experimental
@@ -403,14 +433,14 @@ declare module "node:zlib" {
403
433
  function zstdCompress(buf: InputType, callback: CompressCallback): void;
404
434
  function zstdCompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
405
435
  namespace zstdCompress {
406
- function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<Buffer>;
436
+ function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<NonSharedBuffer>;
407
437
  }
408
438
  /**
409
439
  * Compress a chunk of data with `ZstdCompress`.
410
440
  * @since v22.15.0
411
441
  * @experimental
412
442
  */
413
- function zstdCompressSync(buf: InputType, options?: ZstdOptions): Buffer;
443
+ function zstdCompressSync(buf: InputType, options?: ZstdOptions): NonSharedBuffer;
414
444
  /**
415
445
  * @since v22.15.0
416
446
  * @experimental
@@ -418,14 +448,14 @@ declare module "node:zlib" {
418
448
  function zstdDecompress(buf: InputType, callback: CompressCallback): void;
419
449
  function zstdDecompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
420
450
  namespace zstdDecompress {
421
- function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<Buffer>;
451
+ function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<NonSharedBuffer>;
422
452
  }
423
453
  /**
424
454
  * Decompress a chunk of data with `ZstdDecompress`.
425
455
  * @since v22.15.0
426
456
  * @experimental
427
457
  */
428
- function zstdDecompressSync(buf: InputType, options?: ZstdOptions): Buffer;
458
+ function zstdDecompressSync(buf: InputType, options?: ZstdOptions): NonSharedBuffer;
429
459
  namespace constants {
430
460
  const BROTLI_DECODE: number;
431
461
  const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
@@ -598,69 +628,4 @@ declare module "node:zlib" {
598
628
  const Z_SYNC_FLUSH: number;
599
629
  const Z_VERSION_ERROR: number;
600
630
  }
601
- // Allowed flush values.
602
- /** @deprecated Use `constants.Z_NO_FLUSH` */
603
- const Z_NO_FLUSH: number;
604
- /** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
605
- const Z_PARTIAL_FLUSH: number;
606
- /** @deprecated Use `constants.Z_SYNC_FLUSH` */
607
- const Z_SYNC_FLUSH: number;
608
- /** @deprecated Use `constants.Z_FULL_FLUSH` */
609
- const Z_FULL_FLUSH: number;
610
- /** @deprecated Use `constants.Z_FINISH` */
611
- const Z_FINISH: number;
612
- /** @deprecated Use `constants.Z_BLOCK` */
613
- const Z_BLOCK: number;
614
- /** @deprecated Use `constants.Z_TREES` */
615
- const Z_TREES: number;
616
- // Return codes for the compression/decompression functions.
617
- // Negative values are errors, positive values are used for special but normal events.
618
- /** @deprecated Use `constants.Z_OK` */
619
- const Z_OK: number;
620
- /** @deprecated Use `constants.Z_STREAM_END` */
621
- const Z_STREAM_END: number;
622
- /** @deprecated Use `constants.Z_NEED_DICT` */
623
- const Z_NEED_DICT: number;
624
- /** @deprecated Use `constants.Z_ERRNO` */
625
- const Z_ERRNO: number;
626
- /** @deprecated Use `constants.Z_STREAM_ERROR` */
627
- const Z_STREAM_ERROR: number;
628
- /** @deprecated Use `constants.Z_DATA_ERROR` */
629
- const Z_DATA_ERROR: number;
630
- /** @deprecated Use `constants.Z_MEM_ERROR` */
631
- const Z_MEM_ERROR: number;
632
- /** @deprecated Use `constants.Z_BUF_ERROR` */
633
- const Z_BUF_ERROR: number;
634
- /** @deprecated Use `constants.Z_VERSION_ERROR` */
635
- const Z_VERSION_ERROR: number;
636
- // Compression levels.
637
- /** @deprecated Use `constants.Z_NO_COMPRESSION` */
638
- const Z_NO_COMPRESSION: number;
639
- /** @deprecated Use `constants.Z_BEST_SPEED` */
640
- const Z_BEST_SPEED: number;
641
- /** @deprecated Use `constants.Z_BEST_COMPRESSION` */
642
- const Z_BEST_COMPRESSION: number;
643
- /** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
644
- const Z_DEFAULT_COMPRESSION: number;
645
- // Compression strategy.
646
- /** @deprecated Use `constants.Z_FILTERED` */
647
- const Z_FILTERED: number;
648
- /** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
649
- const Z_HUFFMAN_ONLY: number;
650
- /** @deprecated Use `constants.Z_RLE` */
651
- const Z_RLE: number;
652
- /** @deprecated Use `constants.Z_FIXED` */
653
- const Z_FIXED: number;
654
- /** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
655
- const Z_DEFAULT_STRATEGY: number;
656
- /** @deprecated */
657
- const Z_BINARY: number;
658
- /** @deprecated */
659
- const Z_TEXT: number;
660
- /** @deprecated */
661
- const Z_ASCII: number;
662
- /** @deprecated */
663
- const Z_UNKNOWN: number;
664
- /** @deprecated */
665
- const Z_DEFLATED: number;
666
631
  }
@@ -1,13 +0,0 @@
1
- interface SymbolConstructor {
2
- readonly dispose: unique symbol;
3
- readonly asyncDispose: unique symbol;
4
- }
5
-
6
- interface Disposable {
7
- [Symbol.dispose](): void;
8
- }
9
-
10
- interface AsyncDisposable {
11
- [Symbol.asyncDispose](): PromiseLike<void>;
12
- }
13
-
package/ts5.1/index.d.ts DELETED
@@ -1,100 +0,0 @@
1
- /**
2
- * License for programmatically and manually incorporated
3
- * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
4
- *
5
- * Copyright Node.js contributors. All rights reserved.
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to
8
- * deal in the Software without restriction, including without limitation the
9
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
- * sell copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in
14
- * all copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
- * IN THE SOFTWARE.
23
- */
24
-
25
- // NOTE: These definitions support Node.js and TypeScript 5.1.
26
-
27
- // Reference required TypeScript libraries:
28
- /// <reference lib="es2020" />
29
-
30
- // TypeScript library polyfills required for TypeScript <=5.1:
31
- /// <reference path="./compatibility/disposable.d.ts" />
32
-
33
- // TypeScript library polyfills required for TypeScript <=5.6:
34
- /// <reference path="../ts5.6/compatibility/float16array.d.ts" />
35
-
36
- // Iterator definitions required for compatibility with TypeScript <5.6:
37
- /// <reference path="../compatibility/iterators.d.ts" />
38
-
39
- // Definitions for Node.js modules specific to TypeScript <=5.6:
40
- /// <reference path="../ts5.6/globals.typedarray.d.ts" />
41
- /// <reference path="../ts5.6/buffer.buffer.d.ts" />
42
-
43
- // Definitions for Node.js modules that are not specific to any version of TypeScript:
44
- /// <reference path="../globals.d.ts" />
45
- /// <reference path="../assert.d.ts" />
46
- /// <reference path="../assert/strict.d.ts" />
47
- /// <reference path="../async_hooks.d.ts" />
48
- /// <reference path="../buffer.d.ts" />
49
- /// <reference path="../child_process.d.ts" />
50
- /// <reference path="../cluster.d.ts" />
51
- /// <reference path="../console.d.ts" />
52
- /// <reference path="../constants.d.ts" />
53
- /// <reference path="../crypto.d.ts" />
54
- /// <reference path="../dgram.d.ts" />
55
- /// <reference path="../diagnostics_channel.d.ts" />
56
- /// <reference path="../dns.d.ts" />
57
- /// <reference path="../dns/promises.d.ts" />
58
- /// <reference path="../dns/promises.d.ts" />
59
- /// <reference path="../domain.d.ts" />
60
- /// <reference path="../dom-events.d.ts" />
61
- /// <reference path="../events.d.ts" />
62
- /// <reference path="../fs.d.ts" />
63
- /// <reference path="../fs/promises.d.ts" />
64
- /// <reference path="../http.d.ts" />
65
- /// <reference path="../http2.d.ts" />
66
- /// <reference path="../https.d.ts" />
67
- /// <reference path="../inspector.d.ts" />
68
- /// <reference path="../module.d.ts" />
69
- /// <reference path="../net.d.ts" />
70
- /// <reference path="../os.d.ts" />
71
- /// <reference path="../path.d.ts" />
72
- /// <reference path="../perf_hooks.d.ts" />
73
- /// <reference path="../process.d.ts" />
74
- /// <reference path="../punycode.d.ts" />
75
- /// <reference path="../querystring.d.ts" />
76
- /// <reference path="../readline.d.ts" />
77
- /// <reference path="../readline/promises.d.ts" />
78
- /// <reference path="../repl.d.ts" />
79
- /// <reference path="../sea.d.ts" />
80
- /// <reference path="../sqlite.d.ts" />
81
- /// <reference path="../stream.d.ts" />
82
- /// <reference path="../stream/promises.d.ts" />
83
- /// <reference path="../stream/consumers.d.ts" />
84
- /// <reference path="../stream/web.d.ts" />
85
- /// <reference path="../string_decoder.d.ts" />
86
- /// <reference path="../test.d.ts" />
87
- /// <reference path="../timers.d.ts" />
88
- /// <reference path="../timers/promises.d.ts" />
89
- /// <reference path="../tls.d.ts" />
90
- /// <reference path="../trace_events.d.ts" />
91
- /// <reference path="../tty.d.ts" />
92
- /// <reference path="../url.d.ts" />
93
- /// <reference path="../util.d.ts" />
94
- /// <reference path="../v8.d.ts" />
95
- /// <reference path="../vm.d.ts" />
96
- /// <reference path="../wasi.d.ts" />
97
- /// <reference path="../worker_threads.d.ts" />
98
- /// <reference path="../zlib.d.ts" />
99
-
100
- /// <reference path="../my-shim.d.ts" />