cdk-common 2.0.409 → 2.0.411

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 (101) hide show
  1. package/.jsii +34 -4
  2. package/API.md +25 -0
  3. package/lib/main.js +1 -1
  4. package/lib/managed-policies.d.ts +5 -0
  5. package/lib/managed-policies.js +6 -1
  6. package/node_modules/@aws-cdk/assert/package.json +9 -9
  7. package/node_modules/@aws-cdk/cfnspec/package.json +4 -4
  8. package/node_modules/@aws-cdk/cfnspec/spec/cfn-docs.json +270 -125
  9. package/node_modules/@aws-cdk/cloudformation-diff/package.json +4 -5
  10. package/package.json +6 -6
  11. package/node_modules/@types/node/LICENSE +0 -21
  12. package/node_modules/@types/node/README.md +0 -16
  13. package/node_modules/@types/node/assert.d.ts +0 -128
  14. package/node_modules/@types/node/async_hooks.d.ts +0 -229
  15. package/node_modules/@types/node/buffer.d.ts +0 -89
  16. package/node_modules/@types/node/child_process.d.ts +0 -514
  17. package/node_modules/@types/node/cluster.d.ts +0 -265
  18. package/node_modules/@types/node/console.d.ts +0 -142
  19. package/node_modules/@types/node/constants.d.ts +0 -18
  20. package/node_modules/@types/node/crypto.d.ts +0 -1283
  21. package/node_modules/@types/node/dgram.d.ts +0 -144
  22. package/node_modules/@types/node/dns.d.ts +0 -387
  23. package/node_modules/@types/node/domain.d.ts +0 -27
  24. package/node_modules/@types/node/events.d.ts +0 -82
  25. package/node_modules/@types/node/fs/promises.d.ts +0 -572
  26. package/node_modules/@types/node/fs.d.ts +0 -2281
  27. package/node_modules/@types/node/globals.d.ts +0 -747
  28. package/node_modules/@types/node/globals.global.d.ts +0 -1
  29. package/node_modules/@types/node/http.d.ts +0 -580
  30. package/node_modules/@types/node/http2.d.ts +0 -962
  31. package/node_modules/@types/node/https.d.ts +0 -272
  32. package/node_modules/@types/node/index.d.ts +0 -98
  33. package/node_modules/@types/node/inspector.d.ts +0 -3051
  34. package/node_modules/@types/node/module.d.ts +0 -56
  35. package/node_modules/@types/node/net.d.ts +0 -308
  36. package/node_modules/@types/node/os.d.ts +0 -243
  37. package/node_modules/@types/node/package.json +0 -232
  38. package/node_modules/@types/node/path.d.ts +0 -168
  39. package/node_modules/@types/node/perf_hooks.d.ts +0 -274
  40. package/node_modules/@types/node/process.d.ts +0 -413
  41. package/node_modules/@types/node/punycode.d.ts +0 -78
  42. package/node_modules/@types/node/querystring.d.ts +0 -31
  43. package/node_modules/@types/node/readline.d.ts +0 -174
  44. package/node_modules/@types/node/repl.d.ts +0 -398
  45. package/node_modules/@types/node/stream.d.ts +0 -359
  46. package/node_modules/@types/node/string_decoder.d.ts +0 -10
  47. package/node_modules/@types/node/timers.d.ts +0 -19
  48. package/node_modules/@types/node/tls.d.ts +0 -784
  49. package/node_modules/@types/node/trace_events.d.ts +0 -64
  50. package/node_modules/@types/node/ts4.8/assert.d.ts +0 -128
  51. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -229
  52. package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -89
  53. package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -514
  54. package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -265
  55. package/node_modules/@types/node/ts4.8/console.d.ts +0 -142
  56. package/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
  57. package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -1283
  58. package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -144
  59. package/node_modules/@types/node/ts4.8/dns.d.ts +0 -387
  60. package/node_modules/@types/node/ts4.8/domain.d.ts +0 -27
  61. package/node_modules/@types/node/ts4.8/events.d.ts +0 -82
  62. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -572
  63. package/node_modules/@types/node/ts4.8/fs.d.ts +0 -2281
  64. package/node_modules/@types/node/ts4.8/globals.d.ts +0 -746
  65. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  66. package/node_modules/@types/node/ts4.8/http.d.ts +0 -580
  67. package/node_modules/@types/node/ts4.8/http2.d.ts +0 -962
  68. package/node_modules/@types/node/ts4.8/https.d.ts +0 -272
  69. package/node_modules/@types/node/ts4.8/index.d.ts +0 -53
  70. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -3051
  71. package/node_modules/@types/node/ts4.8/module.d.ts +0 -56
  72. package/node_modules/@types/node/ts4.8/net.d.ts +0 -308
  73. package/node_modules/@types/node/ts4.8/os.d.ts +0 -243
  74. package/node_modules/@types/node/ts4.8/path.d.ts +0 -168
  75. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -274
  76. package/node_modules/@types/node/ts4.8/process.d.ts +0 -413
  77. package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -78
  78. package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -31
  79. package/node_modules/@types/node/ts4.8/readline.d.ts +0 -174
  80. package/node_modules/@types/node/ts4.8/repl.d.ts +0 -398
  81. package/node_modules/@types/node/ts4.8/stream.d.ts +0 -359
  82. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -10
  83. package/node_modules/@types/node/ts4.8/timers.d.ts +0 -19
  84. package/node_modules/@types/node/ts4.8/tls.d.ts +0 -784
  85. package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -64
  86. package/node_modules/@types/node/ts4.8/tty.d.ts +0 -69
  87. package/node_modules/@types/node/ts4.8/url.d.ts +0 -149
  88. package/node_modules/@types/node/ts4.8/util.d.ts +0 -216
  89. package/node_modules/@types/node/ts4.8/v8.d.ts +0 -190
  90. package/node_modules/@types/node/ts4.8/vm.d.ts +0 -155
  91. package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -89
  92. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -241
  93. package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -364
  94. package/node_modules/@types/node/tty.d.ts +0 -69
  95. package/node_modules/@types/node/url.d.ts +0 -149
  96. package/node_modules/@types/node/util.d.ts +0 -216
  97. package/node_modules/@types/node/v8.d.ts +0 -190
  98. package/node_modules/@types/node/vm.d.ts +0 -155
  99. package/node_modules/@types/node/wasi.d.ts +0 -89
  100. package/node_modules/@types/node/worker_threads.d.ts +0 -241
  101. package/node_modules/@types/node/zlib.d.ts +0 -364
@@ -1,359 +0,0 @@
1
- declare module 'stream' {
2
- import EventEmitter = require('events');
3
-
4
- class internal extends EventEmitter {
5
- pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
6
- }
7
-
8
- namespace internal {
9
- class Stream extends internal {
10
- constructor(opts?: ReadableOptions);
11
- }
12
-
13
- interface ReadableOptions {
14
- highWaterMark?: number | undefined;
15
- encoding?: BufferEncoding | undefined;
16
- objectMode?: boolean | undefined;
17
- read?(this: Readable, size: number): void;
18
- destroy?(this: Readable, error: Error | null, callback: (error: Error | null) => void): void;
19
- autoDestroy?: boolean | undefined;
20
- }
21
-
22
- class Readable extends Stream implements NodeJS.ReadableStream {
23
- /**
24
- * A utility method for creating Readable Streams out of iterators.
25
- */
26
- static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
27
-
28
- readable: boolean;
29
- readonly readableEncoding: BufferEncoding | null;
30
- readonly readableEnded: boolean;
31
- readonly readableFlowing: boolean | null;
32
- readonly readableHighWaterMark: number;
33
- readonly readableLength: number;
34
- readonly readableObjectMode: boolean;
35
- destroyed: boolean;
36
- constructor(opts?: ReadableOptions);
37
- _read(size: number): void;
38
- read(size?: number): any;
39
- setEncoding(encoding: BufferEncoding): this;
40
- pause(): this;
41
- resume(): this;
42
- isPaused(): boolean;
43
- unpipe(destination?: NodeJS.WritableStream): this;
44
- unshift(chunk: any, encoding?: BufferEncoding): void;
45
- wrap(oldStream: NodeJS.ReadableStream): this;
46
- push(chunk: any, encoding?: BufferEncoding): boolean;
47
- _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
48
- destroy(error?: Error): this;
49
-
50
- /**
51
- * Event emitter
52
- * The defined events on documents including:
53
- * 1. close
54
- * 2. data
55
- * 3. end
56
- * 4. error
57
- * 5. pause
58
- * 6. readable
59
- * 7. resume
60
- */
61
- addListener(event: "close", listener: () => void): this;
62
- addListener(event: "data", listener: (chunk: any) => void): this;
63
- addListener(event: "end", listener: () => void): this;
64
- addListener(event: "error", listener: (err: Error) => void): this;
65
- addListener(event: "pause", listener: () => void): this;
66
- addListener(event: "readable", listener: () => void): this;
67
- addListener(event: "resume", listener: () => void): this;
68
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
69
-
70
- emit(event: "close"): boolean;
71
- emit(event: "data", chunk: any): boolean;
72
- emit(event: "end"): boolean;
73
- emit(event: "error", err: Error): boolean;
74
- emit(event: "pause"): boolean;
75
- emit(event: "readable"): boolean;
76
- emit(event: "resume"): boolean;
77
- emit(event: string | symbol, ...args: any[]): boolean;
78
-
79
- on(event: "close", listener: () => void): this;
80
- on(event: "data", listener: (chunk: any) => void): this;
81
- on(event: "end", listener: () => void): this;
82
- on(event: "error", listener: (err: Error) => void): this;
83
- on(event: "pause", listener: () => void): this;
84
- on(event: "readable", listener: () => void): this;
85
- on(event: "resume", listener: () => void): this;
86
- on(event: string | symbol, listener: (...args: any[]) => void): this;
87
-
88
- once(event: "close", listener: () => void): this;
89
- once(event: "data", listener: (chunk: any) => void): this;
90
- once(event: "end", listener: () => void): this;
91
- once(event: "error", listener: (err: Error) => void): this;
92
- once(event: "pause", listener: () => void): this;
93
- once(event: "readable", listener: () => void): this;
94
- once(event: "resume", listener: () => void): this;
95
- once(event: string | symbol, listener: (...args: any[]) => void): this;
96
-
97
- prependListener(event: "close", listener: () => void): this;
98
- prependListener(event: "data", listener: (chunk: any) => void): this;
99
- prependListener(event: "end", listener: () => void): this;
100
- prependListener(event: "error", listener: (err: Error) => void): this;
101
- prependListener(event: "pause", listener: () => void): this;
102
- prependListener(event: "readable", listener: () => void): this;
103
- prependListener(event: "resume", listener: () => void): this;
104
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
105
-
106
- prependOnceListener(event: "close", listener: () => void): this;
107
- prependOnceListener(event: "data", listener: (chunk: any) => void): this;
108
- prependOnceListener(event: "end", listener: () => void): this;
109
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
110
- prependOnceListener(event: "pause", listener: () => void): this;
111
- prependOnceListener(event: "readable", listener: () => void): this;
112
- prependOnceListener(event: "resume", listener: () => void): this;
113
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
114
-
115
- removeListener(event: "close", listener: () => void): this;
116
- removeListener(event: "data", listener: (chunk: any) => void): this;
117
- removeListener(event: "end", listener: () => void): this;
118
- removeListener(event: "error", listener: (err: Error) => void): this;
119
- removeListener(event: "pause", listener: () => void): this;
120
- removeListener(event: "readable", listener: () => void): this;
121
- removeListener(event: "resume", listener: () => void): this;
122
- removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
123
-
124
- [Symbol.asyncIterator](): AsyncIterableIterator<any>;
125
- }
126
-
127
- interface WritableOptions {
128
- highWaterMark?: number | undefined;
129
- decodeStrings?: boolean | undefined;
130
- defaultEncoding?: BufferEncoding | undefined;
131
- objectMode?: boolean | undefined;
132
- emitClose?: boolean | undefined;
133
- write?(this: Writable, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
134
- writev?(this: Writable, chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
135
- destroy?(this: Writable, error: Error | null, callback: (error: Error | null) => void): void;
136
- final?(this: Writable, callback: (error?: Error | null) => void): void;
137
- autoDestroy?: boolean | undefined;
138
- }
139
-
140
- class Writable extends Stream implements NodeJS.WritableStream {
141
- readonly writable: boolean;
142
- readonly writableEnded: boolean;
143
- readonly writableFinished: boolean;
144
- readonly writableHighWaterMark: number;
145
- readonly writableLength: number;
146
- readonly writableObjectMode: boolean;
147
- readonly writableCorked: number;
148
- destroyed: boolean;
149
- constructor(opts?: WritableOptions);
150
- _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
151
- _writev?(chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
152
- _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
153
- _final(callback: (error?: Error | null) => void): void;
154
- write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
155
- write(chunk: any, encoding: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
156
- setDefaultEncoding(encoding: BufferEncoding): this;
157
- end(cb?: () => void): this;
158
- end(chunk: any, cb?: () => void): this;
159
- end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
160
- cork(): void;
161
- uncork(): void;
162
- destroy(error?: Error): this;
163
-
164
- /**
165
- * Event emitter
166
- * The defined events on documents including:
167
- * 1. close
168
- * 2. drain
169
- * 3. error
170
- * 4. finish
171
- * 5. pipe
172
- * 6. unpipe
173
- */
174
- addListener(event: "close", listener: () => void): this;
175
- addListener(event: "drain", listener: () => void): this;
176
- addListener(event: "error", listener: (err: Error) => void): this;
177
- addListener(event: "finish", listener: () => void): this;
178
- addListener(event: "pipe", listener: (src: Readable) => void): this;
179
- addListener(event: "unpipe", listener: (src: Readable) => void): this;
180
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
181
-
182
- emit(event: "close"): boolean;
183
- emit(event: "drain"): boolean;
184
- emit(event: "error", err: Error): boolean;
185
- emit(event: "finish"): boolean;
186
- emit(event: "pipe", src: Readable): boolean;
187
- emit(event: "unpipe", src: Readable): boolean;
188
- emit(event: string | symbol, ...args: any[]): boolean;
189
-
190
- on(event: "close", listener: () => void): this;
191
- on(event: "drain", listener: () => void): this;
192
- on(event: "error", listener: (err: Error) => void): this;
193
- on(event: "finish", listener: () => void): this;
194
- on(event: "pipe", listener: (src: Readable) => void): this;
195
- on(event: "unpipe", listener: (src: Readable) => void): this;
196
- on(event: string | symbol, listener: (...args: any[]) => void): this;
197
-
198
- once(event: "close", listener: () => void): this;
199
- once(event: "drain", listener: () => void): this;
200
- once(event: "error", listener: (err: Error) => void): this;
201
- once(event: "finish", listener: () => void): this;
202
- once(event: "pipe", listener: (src: Readable) => void): this;
203
- once(event: "unpipe", listener: (src: Readable) => void): this;
204
- once(event: string | symbol, listener: (...args: any[]) => void): this;
205
-
206
- prependListener(event: "close", listener: () => void): this;
207
- prependListener(event: "drain", listener: () => void): this;
208
- prependListener(event: "error", listener: (err: Error) => void): this;
209
- prependListener(event: "finish", listener: () => void): this;
210
- prependListener(event: "pipe", listener: (src: Readable) => void): this;
211
- prependListener(event: "unpipe", listener: (src: Readable) => void): this;
212
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
213
-
214
- prependOnceListener(event: "close", listener: () => void): this;
215
- prependOnceListener(event: "drain", listener: () => void): this;
216
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
217
- prependOnceListener(event: "finish", listener: () => void): this;
218
- prependOnceListener(event: "pipe", listener: (src: Readable) => void): this;
219
- prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this;
220
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
221
-
222
- removeListener(event: "close", listener: () => void): this;
223
- removeListener(event: "drain", listener: () => void): this;
224
- removeListener(event: "error", listener: (err: Error) => void): this;
225
- removeListener(event: "finish", listener: () => void): this;
226
- removeListener(event: "pipe", listener: (src: Readable) => void): this;
227
- removeListener(event: "unpipe", listener: (src: Readable) => void): this;
228
- removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
229
- }
230
-
231
- interface DuplexOptions extends ReadableOptions, WritableOptions {
232
- allowHalfOpen?: boolean | undefined;
233
- readableObjectMode?: boolean | undefined;
234
- writableObjectMode?: boolean | undefined;
235
- readableHighWaterMark?: number | undefined;
236
- writableHighWaterMark?: number | undefined;
237
- writableCorked?: number | undefined;
238
- read?(this: Duplex, size: number): void;
239
- write?(this: Duplex, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
240
- writev?(this: Duplex, chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
241
- final?(this: Duplex, callback: (error?: Error | null) => void): void;
242
- destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void;
243
- }
244
-
245
- // Note: Duplex extends both Readable and Writable.
246
- class Duplex extends Readable implements Writable {
247
- readonly writable: boolean;
248
- readonly writableEnded: boolean;
249
- readonly writableFinished: boolean;
250
- readonly writableHighWaterMark: number;
251
- readonly writableLength: number;
252
- readonly writableObjectMode: boolean;
253
- readonly writableCorked: number;
254
- allowHalfOpen: boolean;
255
- constructor(opts?: DuplexOptions);
256
- _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
257
- _writev?(chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
258
- _destroy(error: Error | null, callback: (error: Error | null) => void): void;
259
- _final(callback: (error?: Error | null) => void): void;
260
- write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
261
- write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
262
- setDefaultEncoding(encoding: BufferEncoding): this;
263
- end(cb?: () => void): this;
264
- end(chunk: any, cb?: () => void): this;
265
- end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
266
- cork(): void;
267
- uncork(): void;
268
- }
269
-
270
- type TransformCallback = (error?: Error | null, data?: any) => void;
271
-
272
- interface TransformOptions extends DuplexOptions {
273
- read?(this: Transform, size: number): void;
274
- write?(this: Transform, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
275
- writev?(this: Transform, chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
276
- final?(this: Transform, callback: (error?: Error | null) => void): void;
277
- destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void;
278
- transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
279
- flush?(this: Transform, callback: TransformCallback): void;
280
- }
281
-
282
- class Transform extends Duplex {
283
- constructor(opts?: TransformOptions);
284
- _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
285
- _flush(callback: TransformCallback): void;
286
- }
287
-
288
- class PassThrough extends Transform { }
289
-
290
- interface FinishedOptions {
291
- error?: boolean | undefined;
292
- readable?: boolean | undefined;
293
- writable?: boolean | undefined;
294
- }
295
- function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options: FinishedOptions, callback: (err?: NodeJS.ErrnoException | null) => void): () => void;
296
- function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, callback: (err?: NodeJS.ErrnoException | null) => void): () => void;
297
- namespace finished {
298
- function __promisify__(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;
299
- }
300
-
301
- function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: T, callback?: (err: NodeJS.ErrnoException | null) => void): T;
302
- function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: T, callback?: (err: NodeJS.ErrnoException | null) => void): T;
303
- function pipeline<T extends NodeJS.WritableStream>(
304
- stream1: NodeJS.ReadableStream,
305
- stream2: NodeJS.ReadWriteStream,
306
- stream3: NodeJS.ReadWriteStream,
307
- stream4: T,
308
- callback?: (err: NodeJS.ErrnoException | null) => void,
309
- ): T;
310
- function pipeline<T extends NodeJS.WritableStream>(
311
- stream1: NodeJS.ReadableStream,
312
- stream2: NodeJS.ReadWriteStream,
313
- stream3: NodeJS.ReadWriteStream,
314
- stream4: NodeJS.ReadWriteStream,
315
- stream5: T,
316
- callback?: (err: NodeJS.ErrnoException | null) => void,
317
- ): T;
318
- function pipeline(
319
- streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
320
- callback?: (err: NodeJS.ErrnoException | null) => void,
321
- ): NodeJS.WritableStream;
322
- function pipeline(
323
- stream1: NodeJS.ReadableStream,
324
- stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
325
- ...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void)>,
326
- ): NodeJS.WritableStream;
327
- namespace pipeline {
328
- function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.WritableStream): Promise<void>;
329
- function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.WritableStream): Promise<void>;
330
- function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.ReadWriteStream, stream4: NodeJS.WritableStream): Promise<void>;
331
- function __promisify__(
332
- stream1: NodeJS.ReadableStream,
333
- stream2: NodeJS.ReadWriteStream,
334
- stream3: NodeJS.ReadWriteStream,
335
- stream4: NodeJS.ReadWriteStream,
336
- stream5: NodeJS.WritableStream,
337
- ): Promise<void>;
338
- function __promisify__(streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>): Promise<void>;
339
- function __promisify__(
340
- stream1: NodeJS.ReadableStream,
341
- stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
342
- ...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream>,
343
- ): Promise<void>;
344
- }
345
-
346
- interface Pipe {
347
- close(): void;
348
- hasRef(): boolean;
349
- ref(): void;
350
- unref(): void;
351
- }
352
- }
353
-
354
- export = internal;
355
- }
356
- declare module 'node:stream' {
357
- import stream = require('stream');
358
- export = stream;
359
- }
@@ -1,10 +0,0 @@
1
- declare module 'string_decoder' {
2
- class StringDecoder {
3
- constructor(encoding?: BufferEncoding);
4
- write(buffer: Buffer): string;
5
- end(buffer?: Buffer): string;
6
- }
7
- }
8
- declare module 'node:string_decoder' {
9
- export * from 'string_decoder';
10
- }
@@ -1,19 +0,0 @@
1
- declare module 'timers' {
2
- function setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
3
- namespace setTimeout {
4
- function __promisify__(ms: number): Promise<void>;
5
- function __promisify__<T>(ms: number, value: T): Promise<T>;
6
- }
7
- function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
8
- function setInterval(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
9
- function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
10
- function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
11
- namespace setImmediate {
12
- function __promisify__(): Promise<void>;
13
- function __promisify__<T>(value: T): Promise<T>;
14
- }
15
- function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
16
- }
17
- declare module 'node:timers' {
18
- export * from 'timers';
19
- }