@idlebox/stripe-node-types 24.0.14-patch.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 (113) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +16 -0
  3. package/assert/strict.d.ts +5 -0
  4. package/assert.d.ts +1053 -0
  5. package/async_hooks.d.ts +621 -0
  6. package/buffer.buffer.d.ts +464 -0
  7. package/buffer.d.ts +1928 -0
  8. package/child_process.d.ts +1547 -0
  9. package/cluster.d.ts +576 -0
  10. package/compatibility/iterators.d.ts +22 -0
  11. package/console.d.ts +449 -0
  12. package/constants.d.ts +18 -0
  13. package/crypto.d.ts +4514 -0
  14. package/dgram.d.ts +597 -0
  15. package/diagnostics_channel.d.ts +576 -0
  16. package/dns/promises.d.ts +501 -0
  17. package/dns.d.ts +916 -0
  18. package/dom-events.d.ts +100 -0
  19. package/domain.d.ts +168 -0
  20. package/events.d.ts +927 -0
  21. package/fs/promises.d.ts +1278 -0
  22. package/fs.d.ts +4444 -0
  23. package/globals.d.ts +368 -0
  24. package/globals.typedarray.d.ts +23 -0
  25. package/http.d.ts +2044 -0
  26. package/http2.d.ts +2626 -0
  27. package/https.d.ts +543 -0
  28. package/index.d.ts +96 -0
  29. package/inspector.d.ts +3993 -0
  30. package/module.d.ts +866 -0
  31. package/my-shim.d.ts +57 -0
  32. package/net.d.ts +1030 -0
  33. package/os.d.ts +494 -0
  34. package/package.json +158 -0
  35. package/path.d.ts +189 -0
  36. package/perf_hooks.d.ts +968 -0
  37. package/process.d.ts +2016 -0
  38. package/punycode.d.ts +115 -0
  39. package/querystring.d.ts +150 -0
  40. package/readline/promises.d.ts +159 -0
  41. package/readline.d.ts +592 -0
  42. package/repl.d.ts +426 -0
  43. package/sea.d.ts +154 -0
  44. package/sqlite.d.ts +689 -0
  45. package/stream/consumers.d.ts +36 -0
  46. package/stream/promises.d.ts +88 -0
  47. package/stream/web.d.ts +616 -0
  48. package/stream.d.ts +1654 -0
  49. package/string_decoder.d.ts +65 -0
  50. package/test.d.ts +2216 -0
  51. package/timers/promises.d.ts +106 -0
  52. package/timers.d.ts +285 -0
  53. package/tls.d.ts +1211 -0
  54. package/trace_events.d.ts +195 -0
  55. package/ts5.1/compatibility/disposable.d.ts +13 -0
  56. package/ts5.1/index.d.ts +100 -0
  57. package/ts5.6/buffer.buffer.d.ts +461 -0
  58. package/ts5.6/compatibility/float16array.d.ts +72 -0
  59. package/ts5.6/globals.typedarray.d.ts +21 -0
  60. package/ts5.6/index.d.ts +98 -0
  61. package/ts5.7/compatibility/float16array.d.ts +73 -0
  62. package/ts5.7/index.d.ts +98 -0
  63. package/tty.d.ts +206 -0
  64. package/undici-types/LICENSE +22 -0
  65. package/undici-types/README.md +7 -0
  66. package/undici-types/agent.d.ts +32 -0
  67. package/undici-types/api.d.ts +44 -0
  68. package/undici-types/balanced-pool.d.ts +30 -0
  69. package/undici-types/cache-interceptor.d.ts +173 -0
  70. package/undici-types/cache.d.ts +37 -0
  71. package/undici-types/client.d.ts +108 -0
  72. package/undici-types/connector.d.ts +35 -0
  73. package/undici-types/content-type.d.ts +22 -0
  74. package/undici-types/cookies.d.ts +31 -0
  75. package/undici-types/diagnostics-channel.d.ts +67 -0
  76. package/undici-types/dispatcher.d.ts +282 -0
  77. package/undici-types/env-http-proxy-agent.d.ts +22 -0
  78. package/undici-types/errors.d.ts +172 -0
  79. package/undici-types/eventsource.d.ts +62 -0
  80. package/undici-types/fetch.d.ts +211 -0
  81. package/undici-types/formdata.d.ts +109 -0
  82. package/undici-types/global-dispatcher.d.ts +10 -0
  83. package/undici-types/global-origin.d.ts +8 -0
  84. package/undici-types/h2c-client.d.ts +76 -0
  85. package/undici-types/handlers.d.ts +16 -0
  86. package/undici-types/header.d.ts +161 -0
  87. package/undici-types/index.d.ts +76 -0
  88. package/undici-types/interceptors.d.ts +35 -0
  89. package/undici-types/mock-agent.d.ts +66 -0
  90. package/undici-types/mock-call-history.d.ts +112 -0
  91. package/undici-types/mock-client.d.ts +26 -0
  92. package/undici-types/mock-errors.d.ts +13 -0
  93. package/undici-types/mock-interceptor.d.ts +94 -0
  94. package/undici-types/mock-pool.d.ts +26 -0
  95. package/undici-types/package.json +55 -0
  96. package/undici-types/patch.d.ts +30 -0
  97. package/undici-types/pool-stats.d.ts +20 -0
  98. package/undici-types/pool.d.ts +40 -0
  99. package/undici-types/proxy-agent.d.ts +29 -0
  100. package/undici-types/readable.d.ts +69 -0
  101. package/undici-types/retry-agent.d.ts +9 -0
  102. package/undici-types/retry-handler.d.ts +117 -0
  103. package/undici-types/util.d.ts +19 -0
  104. package/undici-types/utility.d.ts +8 -0
  105. package/undici-types/webidl.d.ts +267 -0
  106. package/undici-types/websocket.d.ts +185 -0
  107. package/url.d.ts +1012 -0
  108. package/util.d.ts +2300 -0
  109. package/v8.d.ts +917 -0
  110. package/vm.d.ts +1034 -0
  111. package/wasi.d.ts +179 -0
  112. package/worker_threads.d.ts +773 -0
  113. package/zlib.d.ts +666 -0
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The utility consumer functions provide common options for consuming
3
+ * streams.
4
+ * @since v16.7.0
5
+ */
6
+
7
+ declare module "node:stream/consumers" {
8
+ import { Blob as NodeBlob } from 'node:buffer';
9
+ import { ReadableStream as WebReadableStream } from 'node:stream/web';
10
+ /**
11
+ * @since v16.7.0
12
+ * @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream.
13
+ */
14
+ function arrayBuffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<ArrayBuffer>;
15
+ /**
16
+ * @since v16.7.0
17
+ * @returns Fulfills with a `Blob` containing the full contents of the stream.
18
+ */
19
+ function blob(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NodeBlob>;
20
+ /**
21
+ * @since v16.7.0
22
+ * @returns Fulfills with a `Buffer` containing the full contents of the stream.
23
+ */
24
+ function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<Buffer>;
25
+ /**
26
+ * @since v16.7.0
27
+ * @returns Fulfills with the contents of the stream parsed as a
28
+ * UTF-8 encoded string that is then passed through `JSON.parse()`.
29
+ */
30
+ function json(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<unknown>;
31
+ /**
32
+ * @since v16.7.0
33
+ * @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string.
34
+ */
35
+ function text(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<string>;
36
+ }
@@ -0,0 +1,88 @@
1
+
2
+ declare module "node:stream/promises" {
3
+ import {
4
+ FinishedOptions as _FinishedOptions,
5
+ PipelineDestination,
6
+ PipelineOptions,
7
+ PipelinePromise,
8
+ PipelineSource,
9
+ PipelineTransform,
10
+ } from 'node:stream';
11
+ interface FinishedOptions extends _FinishedOptions {
12
+ /**
13
+ * If true, removes the listeners registered by this function before the promise is fulfilled.
14
+ * @default false
15
+ */
16
+ cleanup?: boolean | undefined;
17
+ }
18
+ function finished(
19
+ stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
20
+ options?: FinishedOptions,
21
+ ): Promise<void>;
22
+ function pipeline<A extends PipelineSource<any>, B extends PipelineDestination<A, any>>(
23
+ source: A,
24
+ destination: B,
25
+ options?: PipelineOptions,
26
+ ): PipelinePromise<B>;
27
+ function pipeline<
28
+ A extends PipelineSource<any>,
29
+ T1 extends PipelineTransform<A, any>,
30
+ B extends PipelineDestination<T1, any>,
31
+ >(
32
+ source: A,
33
+ transform1: T1,
34
+ destination: B,
35
+ options?: PipelineOptions,
36
+ ): PipelinePromise<B>;
37
+ function pipeline<
38
+ A extends PipelineSource<any>,
39
+ T1 extends PipelineTransform<A, any>,
40
+ T2 extends PipelineTransform<T1, any>,
41
+ B extends PipelineDestination<T2, any>,
42
+ >(
43
+ source: A,
44
+ transform1: T1,
45
+ transform2: T2,
46
+ destination: B,
47
+ options?: PipelineOptions,
48
+ ): PipelinePromise<B>;
49
+ function pipeline<
50
+ A extends PipelineSource<any>,
51
+ T1 extends PipelineTransform<A, any>,
52
+ T2 extends PipelineTransform<T1, any>,
53
+ T3 extends PipelineTransform<T2, any>,
54
+ B extends PipelineDestination<T3, any>,
55
+ >(
56
+ source: A,
57
+ transform1: T1,
58
+ transform2: T2,
59
+ transform3: T3,
60
+ destination: B,
61
+ options?: PipelineOptions,
62
+ ): PipelinePromise<B>;
63
+ function pipeline<
64
+ A extends PipelineSource<any>,
65
+ T1 extends PipelineTransform<A, any>,
66
+ T2 extends PipelineTransform<T1, any>,
67
+ T3 extends PipelineTransform<T2, any>,
68
+ T4 extends PipelineTransform<T3, any>,
69
+ B extends PipelineDestination<T4, any>,
70
+ >(
71
+ source: A,
72
+ transform1: T1,
73
+ transform2: T2,
74
+ transform3: T3,
75
+ transform4: T4,
76
+ destination: B,
77
+ options?: PipelineOptions,
78
+ ): PipelinePromise<B>;
79
+ function pipeline(
80
+ streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
81
+ options?: PipelineOptions,
82
+ ): Promise<void>;
83
+ function pipeline(
84
+ stream1: NodeJS.ReadableStream,
85
+ stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
86
+ ...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | PipelineOptions>
87
+ ): Promise<void>;
88
+ }