@idlebox/stripe-node-types 24.0.14 → 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 (85) hide show
  1. package/README.md +1 -1
  2. package/assert/strict.d.ts +98 -1
  3. package/assert.d.ts +147 -248
  4. package/async_hooks.d.ts +5 -5
  5. package/buffer.buffer.d.ts +9 -6
  6. package/buffer.d.ts +49 -169
  7. package/child_process.d.ts +102 -223
  8. package/cluster.d.ts +236 -329
  9. package/console.d.ts +45 -346
  10. package/constants.d.ts +0 -1
  11. package/crypto.d.ts +698 -1149
  12. package/dgram.d.ts +15 -50
  13. package/diagnostics_channel.d.ts +1 -3
  14. package/dns.d.ts +135 -131
  15. package/domain.d.ts +10 -14
  16. package/events.d.ts +846 -722
  17. package/fs/promises.d.ts +102 -53
  18. package/fs.d.ts +714 -484
  19. package/globals.d.ts +130 -347
  20. package/globals.typedarray.d.ts +79 -0
  21. package/http.d.ts +343 -246
  22. package/http2.d.ts +563 -711
  23. package/https.d.ts +70 -216
  24. package/index.d.ts +24 -3
  25. package/inspector/promises.d.ts +54 -0
  26. package/inspector.d.ts +167 -3938
  27. package/inspector.generated.d.ts +4242 -0
  28. package/module.d.ts +45 -95
  29. package/net.d.ts +87 -186
  30. package/os.d.ts +17 -6
  31. package/package.json +3 -8
  32. package/path/posix.d.ts +20 -0
  33. package/path/win32.d.ts +20 -0
  34. package/path.d.ts +117 -122
  35. package/perf_hooks.d.ts +295 -644
  36. package/process.d.ts +177 -138
  37. package/punycode.d.ts +2 -2
  38. package/querystring.d.ts +1 -1
  39. package/quic.d.ts +926 -0
  40. package/readline/promises.d.ts +1 -1
  41. package/readline.d.ts +65 -118
  42. package/repl.d.ts +83 -96
  43. package/sea.d.ts +10 -1
  44. package/sqlite.d.ts +262 -13
  45. package/stream/consumers.d.ts +7 -7
  46. package/stream/promises.d.ts +133 -12
  47. package/stream/web.d.ts +173 -495
  48. package/stream.d.ts +593 -490
  49. package/string_decoder.d.ts +3 -3
  50. package/test/reporters.d.ts +112 -0
  51. package/test.d.ts +223 -199
  52. package/timers/promises.d.ts +1 -1
  53. package/timers.d.ts +1 -129
  54. package/tls.d.ts +148 -163
  55. package/trace_events.d.ts +6 -6
  56. package/ts5.6/buffer.buffer.d.ts +10 -8
  57. package/ts5.6/globals.typedarray.d.ts +16 -0
  58. package/ts5.6/index.d.ts +24 -3
  59. package/ts5.7/index.d.ts +24 -3
  60. package/tty.d.ts +55 -13
  61. package/url.d.ts +92 -587
  62. package/util/types.d.ts +571 -0
  63. package/util.d.ts +143 -792
  64. package/v8.d.ts +67 -7
  65. package/vm.d.ts +252 -108
  66. package/wasi.d.ts +23 -2
  67. package/web-globals/abortcontroller.d.ts +75 -0
  68. package/web-globals/blob.d.ts +39 -0
  69. package/{ts5.1/compatibility/disposable.d.ts → web-globals/console.d.ts} +6 -9
  70. package/web-globals/crypto.d.ts +55 -0
  71. package/web-globals/domexception.d.ts +84 -0
  72. package/web-globals/encoding.d.ts +27 -0
  73. package/{dom-events.d.ts → web-globals/events.d.ts} +57 -50
  74. package/web-globals/fetch.d.ts +70 -0
  75. package/web-globals/importmeta.d.ts +29 -0
  76. package/web-globals/messaging.d.ts +39 -0
  77. package/web-globals/navigator.d.ts +41 -0
  78. package/web-globals/performance.d.ts +61 -0
  79. package/web-globals/storage.d.ts +40 -0
  80. package/web-globals/streams.d.ts +131 -0
  81. package/web-globals/timers.d.ts +60 -0
  82. package/web-globals/url.d.ts +40 -0
  83. package/worker_threads.d.ts +291 -349
  84. package/zlib.d.ts +44 -94
  85. package/ts5.1/index.d.ts +0 -115
package/v8.d.ts CHANGED
@@ -19,10 +19,11 @@
19
19
  * ```js
20
20
  * import v8 from 'node:v8';
21
21
  * ```
22
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/v8.js)
22
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/v8.js)
23
23
  */
24
24
 
25
25
  declare module "node:v8" {
26
+ import { NonSharedBuffer } from 'node:buffer';
26
27
  import { Readable } from 'node:stream';
27
28
  interface HeapSpaceInfo {
28
29
  space_name: string;
@@ -59,12 +60,12 @@ declare module "node:v8" {
59
60
  * If true, expose internals in the heap snapshot.
60
61
  * @default false
61
62
  */
62
- exposeInternals?: boolean;
63
+ exposeInternals?: boolean | undefined;
63
64
  /**
64
65
  * If true, expose numeric values in artificial fields.
65
66
  * @default false
66
67
  */
67
- exposeNumericValues?: boolean;
68
+ exposeNumericValues?: boolean | undefined;
68
69
  }
69
70
  /**
70
71
  * Returns an integer representing a version tag derived from the V8 version,
@@ -416,6 +417,65 @@ declare module "node:v8" {
416
417
  * @since v12.8.0
417
418
  */
418
419
  function getHeapCodeStatistics(): HeapCodeStatistics;
420
+ /**
421
+ * @since v25.0.0
422
+ */
423
+ interface SyncCPUProfileHandle {
424
+ /**
425
+ * Stopping collecting the profile and return the profile data.
426
+ * @since v25.0.0
427
+ */
428
+ stop(): string;
429
+ /**
430
+ * Stopping collecting the profile and the profile will be discarded.
431
+ * @since v25.0.0
432
+ */
433
+ [Symbol.dispose](): void;
434
+ }
435
+ /**
436
+ * @since v24.8.0
437
+ */
438
+ interface CPUProfileHandle {
439
+ /**
440
+ * Stopping collecting the profile, then return a Promise that fulfills with an error or the
441
+ * profile data.
442
+ * @since v24.8.0
443
+ */
444
+ stop(): Promise<string>;
445
+ /**
446
+ * Stopping collecting the profile and the profile will be discarded.
447
+ * @since v24.8.0
448
+ */
449
+ [Symbol.asyncDispose](): Promise<void>;
450
+ }
451
+ /**
452
+ * @since v24.9.0
453
+ */
454
+ interface HeapProfileHandle {
455
+ /**
456
+ * Stopping collecting the profile, then return a Promise that fulfills with an error or the
457
+ * profile data.
458
+ * @since v24.9.0
459
+ */
460
+ stop(): Promise<string>;
461
+ /**
462
+ * Stopping collecting the profile and the profile will be discarded.
463
+ * @since v24.9.0
464
+ */
465
+ [Symbol.asyncDispose](): Promise<void>;
466
+ }
467
+ /**
468
+ * Starting a CPU profile then return a `SyncCPUProfileHandle` object.
469
+ * This API supports `using` syntax.
470
+ *
471
+ * ```js
472
+ * const handle = v8.startCpuProfile();
473
+ * const profile = handle.stop();
474
+ * console.log(profile);
475
+ * ```
476
+ * @since v25.0.0
477
+ */
478
+ function startCPUProfile(): SyncCPUProfileHandle;
419
479
  /**
420
480
  * V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string.
421
481
  * If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;
@@ -469,7 +529,7 @@ declare module "node:v8" {
469
529
  * the buffer is released. Calling this method results in undefined behavior
470
530
  * if a previous write has failed.
471
531
  */
472
- releaseBuffer(): Buffer;
532
+ releaseBuffer(): NonSharedBuffer;
473
533
  /**
474
534
  * Marks an `ArrayBuffer` as having its contents transferred out of band.
475
535
  * Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`.
@@ -497,7 +557,7 @@ declare module "node:v8" {
497
557
  * will require a way to compute the length of the buffer.
498
558
  * For use inside of a custom `serializer._writeHostObject()`.
499
559
  */
500
- writeRawBytes(buffer: NodeJS.TypedArray): void;
560
+ writeRawBytes(buffer: NodeJS.ArrayBufferView): void;
501
561
  }
502
562
  /**
503
563
  * A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only
@@ -568,7 +628,7 @@ declare module "node:v8" {
568
628
  * larger than `buffer.constants.MAX_LENGTH`.
569
629
  * @since v8.0.0
570
630
  */
571
- function serialize(value: any): Buffer;
631
+ function serialize(value: any): NonSharedBuffer;
572
632
  /**
573
633
  * Uses a `DefaultDeserializer` with default options to read a JS value
574
634
  * from a buffer.
@@ -596,7 +656,7 @@ declare module "node:v8" {
596
656
  function stopCoverage(): void;
597
657
  /**
598
658
  * The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once.
599
- * `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information.
659
+ * `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information.
600
660
  * @since v18.10.0, v16.18.0
601
661
  */
602
662
  function setHeapSnapshotNearHeapLimit(limit: number): void;