omegon 0.8.3 → 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.
- package/extensions/cleave/dispatcher.ts +213 -20
- package/extensions/cleave/index.ts +24 -8
- package/extensions/cleave/rpc-child.ts +269 -0
- package/extensions/cleave/types.ts +52 -0
- package/extensions/openspec/spec.ts +3 -0
- package/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/node/assert/strict.d.ts +11 -5
- package/node_modules/@types/node/assert.d.ts +173 -50
- package/node_modules/@types/node/async_hooks.d.ts +8 -28
- package/node_modules/@types/node/buffer.buffer.d.ts +7 -1
- package/node_modules/@types/node/buffer.d.ts +168 -44
- package/node_modules/@types/node/child_process.d.ts +70 -27
- package/node_modules/@types/node/cluster.d.ts +332 -240
- package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -1
- package/node_modules/@types/node/console.d.ts +350 -49
- package/node_modules/@types/node/constants.d.ts +4 -3
- package/node_modules/@types/node/crypto.d.ts +1110 -630
- package/node_modules/@types/node/dgram.d.ts +51 -15
- package/node_modules/@types/node/diagnostics_channel.d.ts +6 -4
- package/node_modules/@types/node/dns/promises.d.ts +4 -4
- package/node_modules/@types/node/dns.d.ts +133 -132
- package/node_modules/@types/node/domain.d.ts +17 -13
- package/node_modules/@types/node/events.d.ts +663 -734
- package/node_modules/@types/node/fs/promises.d.ts +9 -43
- package/node_modules/@types/node/fs.d.ts +411 -628
- package/node_modules/@types/node/globals.d.ts +30 -8
- package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
- package/node_modules/@types/node/http.d.ts +265 -364
- package/node_modules/@types/node/http2.d.ts +715 -551
- package/node_modules/@types/node/https.d.ts +239 -65
- package/node_modules/@types/node/index.d.ts +6 -24
- package/node_modules/@types/node/inspector.d.ts +53 -69
- package/node_modules/@types/node/inspector.generated.d.ts +410 -759
- package/node_modules/@types/node/module.d.ts +186 -52
- package/node_modules/@types/node/net.d.ts +194 -70
- package/node_modules/@types/node/os.d.ts +11 -12
- package/node_modules/@types/node/package.json +3 -13
- package/node_modules/@types/node/path.d.ts +133 -120
- package/node_modules/@types/node/perf_hooks.d.ts +643 -318
- package/node_modules/@types/node/process.d.ts +132 -223
- package/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/node/querystring.d.ts +4 -4
- package/node_modules/@types/node/readline/promises.d.ts +3 -3
- package/node_modules/@types/node/readline.d.ts +120 -68
- package/node_modules/@types/node/repl.d.ts +100 -87
- package/node_modules/@types/node/sea.d.ts +1 -10
- package/node_modules/@types/node/sqlite.d.ts +19 -363
- package/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/stream/promises.d.ts +15 -136
- package/node_modules/@types/node/stream/web.d.ts +502 -176
- package/node_modules/@types/node/stream.d.ts +475 -581
- package/node_modules/@types/node/string_decoder.d.ts +4 -4
- package/node_modules/@types/node/test.d.ts +196 -308
- package/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/timers.d.ts +132 -4
- package/node_modules/@types/node/tls.d.ts +226 -110
- package/node_modules/@types/node/trace_events.d.ts +9 -9
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +7 -1
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
- package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
- package/node_modules/@types/node/tty.d.ts +16 -58
- package/node_modules/@types/node/url.d.ts +573 -130
- package/node_modules/@types/node/util.d.ts +1100 -181
- package/node_modules/@types/node/v8.d.ts +8 -76
- package/node_modules/@types/node/vm.d.ts +72 -280
- package/node_modules/@types/node/wasi.d.ts +4 -25
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
- package/node_modules/@types/node/web-globals/events.d.ts +0 -9
- package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
- package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
- package/node_modules/@types/node/worker_threads.d.ts +335 -268
- package/node_modules/@types/node/zlib.d.ts +74 -9
- package/node_modules/undici-types/agent.d.ts +12 -13
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +12 -13
- package/node_modules/undici-types/client.d.ts +19 -19
- package/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/undici-types/cookies.d.ts +0 -2
- package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
- package/node_modules/undici-types/dispatcher.d.ts +103 -123
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
- package/node_modules/undici-types/errors.d.ts +54 -66
- package/node_modules/undici-types/eventsource.d.ts +4 -9
- package/node_modules/undici-types/fetch.d.ts +20 -22
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/handlers.d.ts +8 -8
- package/node_modules/undici-types/header.d.ts +1 -157
- package/node_modules/undici-types/index.d.ts +47 -64
- package/node_modules/undici-types/interceptors.d.ts +8 -64
- package/node_modules/undici-types/mock-agent.d.ts +18 -36
- package/node_modules/undici-types/mock-client.d.ts +4 -6
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
- package/node_modules/undici-types/mock-pool.d.ts +4 -6
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +4 -0
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +13 -15
- package/node_modules/undici-types/proxy-agent.d.ts +4 -5
- package/node_modules/undici-types/readable.d.ts +16 -19
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +10 -19
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/webidl.d.ts +29 -142
- package/node_modules/undici-types/websocket.d.ts +10 -46
- package/package.json +2 -1
- package/skills/cleave/SKILL.md +62 -2
- package/node_modules/@types/node/inspector/promises.d.ts +0 -41
- package/node_modules/@types/node/path/posix.d.ts +0 -8
- package/node_modules/@types/node/path/win32.d.ts +0 -8
- package/node_modules/@types/node/quic.d.ts +0 -910
- package/node_modules/@types/node/test/reporters.d.ts +0 -96
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
- package/node_modules/@types/node/ts5.7/index.d.ts +0 -117
- package/node_modules/@types/node/util/types.d.ts +0 -558
- package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
- package/node_modules/@types/node/web-globals/console.d.ts +0 -9
- package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
- package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
- package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
- package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
- package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
- package/node_modules/@types/node/web-globals/streams.d.ts +0 -115
- package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
- package/node_modules/@types/node/web-globals/url.d.ts +0 -24
- package/node_modules/undici-types/cache-interceptor.d.ts +0 -173
- package/node_modules/undici-types/client-stats.d.ts +0 -15
- package/node_modules/undici-types/h2c-client.d.ts +0 -73
- package/node_modules/undici-types/mock-call-history.d.ts +0 -111
- package/node_modules/undici-types/round-robin-pool.d.ts +0 -41
- package/node_modules/undici-types/snapshot-agent.d.ts +0 -109
- package/node_modules/undici-types/utility.d.ts +0 -7
|
@@ -1,91 +1,119 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
done: false;
|
|
42
|
-
value: T;
|
|
43
|
-
}
|
|
1
|
+
type _ByteLengthQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
|
|
2
|
+
: import("stream/web").ByteLengthQueuingStrategy;
|
|
3
|
+
type _CompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
|
|
4
|
+
: import("stream/web").CompressionStream;
|
|
5
|
+
type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
|
|
6
|
+
: import("stream/web").CountQueuingStrategy;
|
|
7
|
+
type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
|
|
8
|
+
: import("stream/web").DecompressionStream;
|
|
9
|
+
type _QueuingStrategy<T = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
10
|
+
: import("stream/web").QueuingStrategy<T>;
|
|
11
|
+
type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
|
|
12
|
+
: import("stream/web").ReadableByteStreamController;
|
|
13
|
+
type _ReadableStream<R = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
14
|
+
: import("stream/web").ReadableStream<R>;
|
|
15
|
+
type _ReadableStreamBYOBReader = typeof globalThis extends { onmessage: any } ? {}
|
|
16
|
+
: import("stream/web").ReadableStreamBYOBReader;
|
|
17
|
+
type _ReadableStreamBYOBRequest = typeof globalThis extends { onmessage: any } ? {}
|
|
18
|
+
: import("stream/web").ReadableStreamBYOBRequest;
|
|
19
|
+
type _ReadableStreamDefaultController<R = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
20
|
+
: import("stream/web").ReadableStreamDefaultController<R>;
|
|
21
|
+
type _ReadableStreamDefaultReader<R = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
22
|
+
: import("stream/web").ReadableStreamDefaultReader<R>;
|
|
23
|
+
type _TextDecoderStream = typeof globalThis extends { onmessage: any } ? {}
|
|
24
|
+
: import("stream/web").TextDecoderStream;
|
|
25
|
+
type _TextEncoderStream = typeof globalThis extends { onmessage: any } ? {}
|
|
26
|
+
: import("stream/web").TextEncoderStream;
|
|
27
|
+
type _TransformStream<I = any, O = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
28
|
+
: import("stream/web").TransformStream<I, O>;
|
|
29
|
+
type _TransformStreamDefaultController<O = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
30
|
+
: import("stream/web").TransformStreamDefaultController<O>;
|
|
31
|
+
type _WritableStream<W = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
32
|
+
: import("stream/web").WritableStream<W>;
|
|
33
|
+
type _WritableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {}
|
|
34
|
+
: import("stream/web").WritableStreamDefaultController;
|
|
35
|
+
type _WritableStreamDefaultWriter<W = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
36
|
+
: import("stream/web").WritableStreamDefaultWriter<W>;
|
|
37
|
+
|
|
38
|
+
declare module "stream/web" {
|
|
39
|
+
// stub module, pending copy&paste from .d.ts or manual impl
|
|
40
|
+
// copy from lib.dom.d.ts
|
|
44
41
|
interface ReadableWritablePair<R = any, W = any> {
|
|
45
42
|
readable: ReadableStream<R>;
|
|
43
|
+
/**
|
|
44
|
+
* Provides a convenient, chainable way of piping this readable stream
|
|
45
|
+
* through a transform stream (or any other { writable, readable }
|
|
46
|
+
* pair). It simply pipes the stream into the writable side of the
|
|
47
|
+
* supplied pair, and returns the readable side for further use.
|
|
48
|
+
*
|
|
49
|
+
* Piping a stream will lock it for the duration of the pipe, preventing
|
|
50
|
+
* any other consumer from acquiring a reader.
|
|
51
|
+
*/
|
|
46
52
|
writable: WritableStream<W>;
|
|
47
53
|
}
|
|
48
54
|
interface StreamPipeOptions {
|
|
49
55
|
preventAbort?: boolean;
|
|
50
56
|
preventCancel?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Pipes this readable stream to a given writable stream destination.
|
|
59
|
+
* The way in which the piping process behaves under various error
|
|
60
|
+
* conditions can be customized with a number of passed options. It
|
|
61
|
+
* returns a promise that fulfills when the piping process completes
|
|
62
|
+
* successfully, or rejects if any errors were encountered.
|
|
63
|
+
*
|
|
64
|
+
* Piping a stream will lock it for the duration of the pipe, preventing
|
|
65
|
+
* any other consumer from acquiring a reader.
|
|
66
|
+
*
|
|
67
|
+
* Errors and closures of the source and destination streams propagate
|
|
68
|
+
* as follows:
|
|
69
|
+
*
|
|
70
|
+
* An error in this source readable stream will abort destination,
|
|
71
|
+
* unless preventAbort is truthy. The returned promise will be rejected
|
|
72
|
+
* with the source's error, or with any error that occurs during
|
|
73
|
+
* aborting the destination.
|
|
74
|
+
*
|
|
75
|
+
* An error in destination will cancel this source readable stream,
|
|
76
|
+
* unless preventCancel is truthy. The returned promise will be rejected
|
|
77
|
+
* with the destination's error, or with any error that occurs during
|
|
78
|
+
* canceling the source.
|
|
79
|
+
*
|
|
80
|
+
* When this source readable stream closes, destination will be closed,
|
|
81
|
+
* unless preventClose is truthy. The returned promise will be fulfilled
|
|
82
|
+
* once this process completes, unless an error is encountered while
|
|
83
|
+
* closing the destination, in which case it will be rejected with that
|
|
84
|
+
* error.
|
|
85
|
+
*
|
|
86
|
+
* If destination starts out closed or closing, this source readable
|
|
87
|
+
* stream will be canceled, unless preventCancel is true. The returned
|
|
88
|
+
* promise will be rejected with an error indicating piping to a closed
|
|
89
|
+
* stream failed, or with any error that occurs during canceling the
|
|
90
|
+
* source.
|
|
91
|
+
*
|
|
92
|
+
* The signal option can be set to an AbortSignal to allow aborting an
|
|
93
|
+
* ongoing pipe operation via the corresponding AbortController. In this
|
|
94
|
+
* case, this source readable stream will be canceled, and destination
|
|
95
|
+
* aborted, unless the respective options preventCancel or preventAbort
|
|
96
|
+
* are set.
|
|
97
|
+
*/
|
|
51
98
|
preventClose?: boolean;
|
|
52
99
|
signal?: AbortSignal;
|
|
53
100
|
}
|
|
54
|
-
interface
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
start?: TransformerStartCallback<O>;
|
|
58
|
-
transform?: TransformerTransformCallback<I, O>;
|
|
59
|
-
writableType?: undefined;
|
|
60
|
-
}
|
|
61
|
-
interface TransformerFlushCallback<O> {
|
|
62
|
-
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
63
|
-
}
|
|
64
|
-
interface TransformerStartCallback<O> {
|
|
65
|
-
(controller: TransformStreamDefaultController<O>): any;
|
|
66
|
-
}
|
|
67
|
-
interface TransformerTransformCallback<I, O> {
|
|
68
|
-
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
101
|
+
interface ReadableStreamGenericReader {
|
|
102
|
+
readonly closed: Promise<void>;
|
|
103
|
+
cancel(reason?: any): Promise<void>;
|
|
69
104
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
start?: (controller: ReadableByteStreamController) => any;
|
|
75
|
-
type: "bytes";
|
|
105
|
+
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
106
|
+
interface ReadableStreamReadValueResult<T> {
|
|
107
|
+
done: false;
|
|
108
|
+
value: T;
|
|
76
109
|
}
|
|
77
|
-
interface
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
start?: (controller: ReadableStreamDefaultController<R>) => any;
|
|
81
|
-
type?: undefined;
|
|
110
|
+
interface ReadableStreamReadDoneResult<T> {
|
|
111
|
+
done: true;
|
|
112
|
+
value?: T;
|
|
82
113
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
start?: UnderlyingSinkStartCallback;
|
|
87
|
-
type?: undefined;
|
|
88
|
-
write?: UnderlyingSinkWriteCallback<W>;
|
|
114
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
115
|
+
interface ReadableByteStreamControllerCallback {
|
|
116
|
+
(controller: ReadableByteStreamController): void | PromiseLike<void>;
|
|
89
117
|
}
|
|
90
118
|
interface UnderlyingSinkAbortCallback {
|
|
91
119
|
(reason?: any): void | PromiseLike<void>;
|
|
@@ -99,13 +127,6 @@ declare module "node:stream/web" {
|
|
|
99
127
|
interface UnderlyingSinkWriteCallback<W> {
|
|
100
128
|
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
|
|
101
129
|
}
|
|
102
|
-
interface UnderlyingSource<R = any> {
|
|
103
|
-
autoAllocateChunkSize?: number;
|
|
104
|
-
cancel?: UnderlyingSourceCancelCallback;
|
|
105
|
-
pull?: UnderlyingSourcePullCallback<R>;
|
|
106
|
-
start?: UnderlyingSourceStartCallback<R>;
|
|
107
|
-
type?: ReadableStreamType;
|
|
108
|
-
}
|
|
109
130
|
interface UnderlyingSourceCancelCallback {
|
|
110
131
|
(reason?: any): void | PromiseLike<void>;
|
|
111
132
|
}
|
|
@@ -115,49 +136,45 @@ declare module "node:stream/web" {
|
|
|
115
136
|
interface UnderlyingSourceStartCallback<R> {
|
|
116
137
|
(controller: ReadableStreamController<R>): any;
|
|
117
138
|
}
|
|
118
|
-
interface
|
|
119
|
-
|
|
120
|
-
readonly size: QueuingStrategySize<NodeJS.ArrayBufferView>;
|
|
139
|
+
interface TransformerFlushCallback<O> {
|
|
140
|
+
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
121
141
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
125
|
-
};
|
|
126
|
-
interface CompressionStream extends GenericTransformStream {
|
|
127
|
-
readonly readable: ReadableStream<NodeJS.NonSharedUint8Array>;
|
|
128
|
-
readonly writable: WritableStream<NodeJS.BufferSource>;
|
|
142
|
+
interface TransformerStartCallback<O> {
|
|
143
|
+
(controller: TransformStreamDefaultController<O>): any;
|
|
129
144
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
new(format: CompressionFormat): CompressionStream;
|
|
133
|
-
};
|
|
134
|
-
interface CountQueuingStrategy extends QueuingStrategy {
|
|
135
|
-
readonly highWaterMark: number;
|
|
136
|
-
readonly size: QueuingStrategySize;
|
|
145
|
+
interface TransformerTransformCallback<I, O> {
|
|
146
|
+
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
137
147
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
new(init: QueuingStrategyInit): CountQueuingStrategy;
|
|
141
|
-
};
|
|
142
|
-
interface DecompressionStream extends GenericTransformStream {
|
|
143
|
-
readonly readable: ReadableStream<NodeJS.NonSharedUint8Array>;
|
|
144
|
-
readonly writable: WritableStream<NodeJS.BufferSource>;
|
|
148
|
+
interface TransformerCancelCallback {
|
|
149
|
+
(reason: any): void | PromiseLike<void>;
|
|
145
150
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
readonly desiredSize: number | null;
|
|
153
|
-
close(): void;
|
|
154
|
-
enqueue(chunk: NodeJS.NonSharedArrayBufferView): void;
|
|
155
|
-
error(e?: any): void;
|
|
151
|
+
interface UnderlyingByteSource {
|
|
152
|
+
autoAllocateChunkSize?: number;
|
|
153
|
+
cancel?: ReadableStreamErrorCallback;
|
|
154
|
+
pull?: ReadableByteStreamControllerCallback;
|
|
155
|
+
start?: ReadableByteStreamControllerCallback;
|
|
156
|
+
type: "bytes";
|
|
156
157
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
interface UnderlyingSource<R = any> {
|
|
159
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
160
|
+
pull?: UnderlyingSourcePullCallback<R>;
|
|
161
|
+
start?: UnderlyingSourceStartCallback<R>;
|
|
162
|
+
type?: undefined;
|
|
163
|
+
}
|
|
164
|
+
interface UnderlyingSink<W = any> {
|
|
165
|
+
abort?: UnderlyingSinkAbortCallback;
|
|
166
|
+
close?: UnderlyingSinkCloseCallback;
|
|
167
|
+
start?: UnderlyingSinkStartCallback;
|
|
168
|
+
type?: undefined;
|
|
169
|
+
write?: UnderlyingSinkWriteCallback<W>;
|
|
170
|
+
}
|
|
171
|
+
interface ReadableStreamErrorCallback {
|
|
172
|
+
(reason: any): void | PromiseLike<void>;
|
|
173
|
+
}
|
|
174
|
+
interface ReadableStreamAsyncIterator<T> extends NodeJS.AsyncIterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
|
|
175
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
|
|
176
|
+
}
|
|
177
|
+
/** This Streams API interface represents a readable stream of byte data. */
|
|
161
178
|
interface ReadableStream<R = any> {
|
|
162
179
|
readonly locked: boolean;
|
|
163
180
|
cancel(reason?: any): Promise<void>;
|
|
@@ -167,81 +184,96 @@ declare module "node:stream/web" {
|
|
|
167
184
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
168
185
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
169
186
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
170
|
-
|
|
171
|
-
|
|
187
|
+
values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator<R>;
|
|
188
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<R>;
|
|
172
189
|
}
|
|
173
|
-
|
|
190
|
+
const ReadableStream: {
|
|
174
191
|
prototype: ReadableStream;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
strategy?: { highWaterMark?: number },
|
|
178
|
-
): ReadableStream<NodeJS.NonSharedUint8Array>;
|
|
179
|
-
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
192
|
+
from<T>(iterable: Iterable<T> | AsyncIterable<T>): ReadableStream<T>;
|
|
193
|
+
new(underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy<Uint8Array>): ReadableStream<Uint8Array>;
|
|
180
194
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
181
|
-
from<R = any>(iterable: Iterable<R> | AsyncIterable<R>): ReadableStream<R>;
|
|
182
195
|
};
|
|
183
|
-
|
|
184
|
-
|
|
196
|
+
type ReadableStreamReaderMode = "byob";
|
|
197
|
+
interface ReadableStreamGetReaderOptions {
|
|
198
|
+
/**
|
|
199
|
+
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
200
|
+
*
|
|
201
|
+
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
|
|
202
|
+
*/
|
|
203
|
+
mode?: ReadableStreamReaderMode;
|
|
204
|
+
}
|
|
205
|
+
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
206
|
+
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
207
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
208
|
+
releaseLock(): void;
|
|
185
209
|
}
|
|
210
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
|
|
186
211
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
187
|
-
|
|
212
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
|
|
213
|
+
read<T extends ArrayBufferView>(
|
|
188
214
|
view: T,
|
|
189
|
-
options?:
|
|
215
|
+
options?: {
|
|
216
|
+
min?: number;
|
|
217
|
+
},
|
|
190
218
|
): Promise<ReadableStreamReadResult<T>>;
|
|
219
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
|
|
191
220
|
releaseLock(): void;
|
|
192
221
|
}
|
|
193
|
-
|
|
222
|
+
const ReadableStreamDefaultReader: {
|
|
223
|
+
prototype: ReadableStreamDefaultReader;
|
|
224
|
+
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
|
|
225
|
+
};
|
|
226
|
+
const ReadableStreamBYOBReader: {
|
|
194
227
|
prototype: ReadableStreamBYOBReader;
|
|
195
|
-
new(stream: ReadableStream
|
|
228
|
+
new(stream: ReadableStream): ReadableStreamBYOBReader;
|
|
196
229
|
};
|
|
230
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
|
|
197
231
|
interface ReadableStreamBYOBRequest {
|
|
198
|
-
|
|
232
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
|
|
233
|
+
readonly view: ArrayBufferView | null;
|
|
234
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
|
|
199
235
|
respond(bytesWritten: number): void;
|
|
200
|
-
|
|
236
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
|
|
237
|
+
respondWithNewView(view: ArrayBufferView): void;
|
|
201
238
|
}
|
|
202
|
-
|
|
239
|
+
const ReadableStreamBYOBRequest: {
|
|
203
240
|
prototype: ReadableStreamBYOBRequest;
|
|
204
241
|
new(): ReadableStreamBYOBRequest;
|
|
205
242
|
};
|
|
243
|
+
interface ReadableByteStreamController {
|
|
244
|
+
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
245
|
+
readonly desiredSize: number | null;
|
|
246
|
+
close(): void;
|
|
247
|
+
enqueue(chunk: ArrayBufferView): void;
|
|
248
|
+
error(error?: any): void;
|
|
249
|
+
}
|
|
250
|
+
const ReadableByteStreamController: {
|
|
251
|
+
prototype: ReadableByteStreamController;
|
|
252
|
+
new(): ReadableByteStreamController;
|
|
253
|
+
};
|
|
206
254
|
interface ReadableStreamDefaultController<R = any> {
|
|
207
255
|
readonly desiredSize: number | null;
|
|
208
256
|
close(): void;
|
|
209
257
|
enqueue(chunk?: R): void;
|
|
210
258
|
error(e?: any): void;
|
|
211
259
|
}
|
|
212
|
-
|
|
260
|
+
const ReadableStreamDefaultController: {
|
|
213
261
|
prototype: ReadableStreamDefaultController;
|
|
214
262
|
new(): ReadableStreamDefaultController;
|
|
215
263
|
};
|
|
216
|
-
interface
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
};
|
|
224
|
-
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
225
|
-
readonly readable: ReadableStream<string>;
|
|
226
|
-
readonly writable: WritableStream<NodeJS.BufferSource>;
|
|
227
|
-
}
|
|
228
|
-
var TextDecoderStream: {
|
|
229
|
-
prototype: TextDecoderStream;
|
|
230
|
-
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
231
|
-
};
|
|
232
|
-
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
233
|
-
readonly readable: ReadableStream<NodeJS.NonSharedUint8Array>;
|
|
234
|
-
readonly writable: WritableStream<string>;
|
|
264
|
+
interface Transformer<I = any, O = any> {
|
|
265
|
+
flush?: TransformerFlushCallback<O>;
|
|
266
|
+
readableType?: undefined;
|
|
267
|
+
start?: TransformerStartCallback<O>;
|
|
268
|
+
transform?: TransformerTransformCallback<I, O>;
|
|
269
|
+
cancel?: TransformerCancelCallback;
|
|
270
|
+
writableType?: undefined;
|
|
235
271
|
}
|
|
236
|
-
var TextEncoderStream: {
|
|
237
|
-
prototype: TextEncoderStream;
|
|
238
|
-
new(): TextEncoderStream;
|
|
239
|
-
};
|
|
240
272
|
interface TransformStream<I = any, O = any> {
|
|
241
273
|
readonly readable: ReadableStream<O>;
|
|
242
274
|
readonly writable: WritableStream<I>;
|
|
243
275
|
}
|
|
244
|
-
|
|
276
|
+
const TransformStream: {
|
|
245
277
|
prototype: TransformStream;
|
|
246
278
|
new<I = any, O = any>(
|
|
247
279
|
transformer?: Transformer<I, O>,
|
|
@@ -255,28 +287,31 @@ declare module "node:stream/web" {
|
|
|
255
287
|
error(reason?: any): void;
|
|
256
288
|
terminate(): void;
|
|
257
289
|
}
|
|
258
|
-
|
|
290
|
+
const TransformStreamDefaultController: {
|
|
259
291
|
prototype: TransformStreamDefaultController;
|
|
260
292
|
new(): TransformStreamDefaultController;
|
|
261
293
|
};
|
|
294
|
+
/**
|
|
295
|
+
* This Streams API interface provides a standard abstraction for writing
|
|
296
|
+
* streaming data to a destination, known as a sink. This object comes with
|
|
297
|
+
* built-in back pressure and queuing.
|
|
298
|
+
*/
|
|
262
299
|
interface WritableStream<W = any> {
|
|
263
300
|
readonly locked: boolean;
|
|
264
301
|
abort(reason?: any): Promise<void>;
|
|
265
302
|
close(): Promise<void>;
|
|
266
303
|
getWriter(): WritableStreamDefaultWriter<W>;
|
|
267
304
|
}
|
|
268
|
-
|
|
305
|
+
const WritableStream: {
|
|
269
306
|
prototype: WritableStream;
|
|
270
307
|
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
|
|
271
308
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
new(): WritableStreamDefaultController;
|
|
279
|
-
};
|
|
309
|
+
/**
|
|
310
|
+
* This Streams API interface is the object returned by
|
|
311
|
+
* WritableStream.getWriter() and once created locks the < writer to the
|
|
312
|
+
* WritableStream ensuring that no other streams can write to the underlying
|
|
313
|
+
* sink.
|
|
314
|
+
*/
|
|
280
315
|
interface WritableStreamDefaultWriter<W = any> {
|
|
281
316
|
readonly closed: Promise<void>;
|
|
282
317
|
readonly desiredSize: number | null;
|
|
@@ -286,11 +321,302 @@ declare module "node:stream/web" {
|
|
|
286
321
|
releaseLock(): void;
|
|
287
322
|
write(chunk?: W): Promise<void>;
|
|
288
323
|
}
|
|
289
|
-
|
|
324
|
+
const WritableStreamDefaultWriter: {
|
|
290
325
|
prototype: WritableStreamDefaultWriter;
|
|
291
326
|
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
|
|
292
327
|
};
|
|
328
|
+
/**
|
|
329
|
+
* This Streams API interface represents a controller allowing control of a
|
|
330
|
+
* WritableStream's state. When constructing a WritableStream, the
|
|
331
|
+
* underlying sink is given a corresponding WritableStreamDefaultController
|
|
332
|
+
* instance to manipulate.
|
|
333
|
+
*/
|
|
334
|
+
interface WritableStreamDefaultController {
|
|
335
|
+
error(e?: any): void;
|
|
336
|
+
}
|
|
337
|
+
const WritableStreamDefaultController: {
|
|
338
|
+
prototype: WritableStreamDefaultController;
|
|
339
|
+
new(): WritableStreamDefaultController;
|
|
340
|
+
};
|
|
341
|
+
interface QueuingStrategy<T = any> {
|
|
342
|
+
highWaterMark?: number;
|
|
343
|
+
size?: QueuingStrategySize<T>;
|
|
344
|
+
}
|
|
345
|
+
interface QueuingStrategySize<T = any> {
|
|
346
|
+
(chunk?: T): number;
|
|
347
|
+
}
|
|
348
|
+
interface QueuingStrategyInit {
|
|
349
|
+
/**
|
|
350
|
+
* Creates a new ByteLengthQueuingStrategy with the provided high water
|
|
351
|
+
* mark.
|
|
352
|
+
*
|
|
353
|
+
* Note that the provided high water mark will not be validated ahead of
|
|
354
|
+
* time. Instead, if it is negative, NaN, or not a number, the resulting
|
|
355
|
+
* ByteLengthQueuingStrategy will cause the corresponding stream
|
|
356
|
+
* constructor to throw.
|
|
357
|
+
*/
|
|
358
|
+
highWaterMark: number;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* This Streams API interface provides a built-in byte length queuing
|
|
362
|
+
* strategy that can be used when constructing streams.
|
|
363
|
+
*/
|
|
364
|
+
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
|
|
365
|
+
readonly highWaterMark: number;
|
|
366
|
+
readonly size: QueuingStrategySize<ArrayBufferView>;
|
|
367
|
+
}
|
|
368
|
+
const ByteLengthQueuingStrategy: {
|
|
369
|
+
prototype: ByteLengthQueuingStrategy;
|
|
370
|
+
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* This Streams API interface provides a built-in byte length queuing
|
|
374
|
+
* strategy that can be used when constructing streams.
|
|
375
|
+
*/
|
|
376
|
+
interface CountQueuingStrategy extends QueuingStrategy {
|
|
377
|
+
readonly highWaterMark: number;
|
|
378
|
+
readonly size: QueuingStrategySize;
|
|
379
|
+
}
|
|
380
|
+
const CountQueuingStrategy: {
|
|
381
|
+
prototype: CountQueuingStrategy;
|
|
382
|
+
new(init: QueuingStrategyInit): CountQueuingStrategy;
|
|
383
|
+
};
|
|
384
|
+
interface TextEncoderStream {
|
|
385
|
+
/** Returns "utf-8". */
|
|
386
|
+
readonly encoding: "utf-8";
|
|
387
|
+
readonly readable: ReadableStream<Uint8Array>;
|
|
388
|
+
readonly writable: WritableStream<string>;
|
|
389
|
+
readonly [Symbol.toStringTag]: string;
|
|
390
|
+
}
|
|
391
|
+
const TextEncoderStream: {
|
|
392
|
+
prototype: TextEncoderStream;
|
|
393
|
+
new(): TextEncoderStream;
|
|
394
|
+
};
|
|
395
|
+
interface TextDecoderOptions {
|
|
396
|
+
fatal?: boolean;
|
|
397
|
+
ignoreBOM?: boolean;
|
|
398
|
+
}
|
|
399
|
+
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
400
|
+
interface TextDecoderStream {
|
|
401
|
+
/** Returns encoding's name, lower cased. */
|
|
402
|
+
readonly encoding: string;
|
|
403
|
+
/** Returns `true` if error mode is "fatal", and `false` otherwise. */
|
|
404
|
+
readonly fatal: boolean;
|
|
405
|
+
/** Returns `true` if ignore BOM flag is set, and `false` otherwise. */
|
|
406
|
+
readonly ignoreBOM: boolean;
|
|
407
|
+
readonly readable: ReadableStream<string>;
|
|
408
|
+
readonly writable: WritableStream<BufferSource>;
|
|
409
|
+
readonly [Symbol.toStringTag]: string;
|
|
410
|
+
}
|
|
411
|
+
const TextDecoderStream: {
|
|
412
|
+
prototype: TextDecoderStream;
|
|
413
|
+
new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
414
|
+
};
|
|
415
|
+
interface CompressionStream {
|
|
416
|
+
readonly readable: ReadableStream;
|
|
417
|
+
readonly writable: WritableStream;
|
|
418
|
+
}
|
|
419
|
+
const CompressionStream: {
|
|
420
|
+
prototype: CompressionStream;
|
|
421
|
+
new(format: "deflate" | "deflate-raw" | "gzip"): CompressionStream;
|
|
422
|
+
};
|
|
423
|
+
interface DecompressionStream {
|
|
424
|
+
readonly writable: WritableStream;
|
|
425
|
+
readonly readable: ReadableStream;
|
|
426
|
+
}
|
|
427
|
+
const DecompressionStream: {
|
|
428
|
+
prototype: DecompressionStream;
|
|
429
|
+
new(format: "deflate" | "deflate-raw" | "gzip"): DecompressionStream;
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
global {
|
|
433
|
+
interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {}
|
|
434
|
+
/**
|
|
435
|
+
* `ByteLengthQueuingStrategy` class is a global reference for `import { ByteLengthQueuingStrategy } from 'node:stream/web'`.
|
|
436
|
+
* https://nodejs.org/api/globals.html#class-bytelengthqueuingstrategy
|
|
437
|
+
* @since v18.0.0
|
|
438
|
+
*/
|
|
439
|
+
var ByteLengthQueuingStrategy: typeof globalThis extends { onmessage: any; ByteLengthQueuingStrategy: infer T }
|
|
440
|
+
? T
|
|
441
|
+
: typeof import("stream/web").ByteLengthQueuingStrategy;
|
|
442
|
+
|
|
443
|
+
interface CompressionStream extends _CompressionStream {}
|
|
444
|
+
/**
|
|
445
|
+
* `CompressionStream` class is a global reference for `import { CompressionStream } from 'node:stream/web'`.
|
|
446
|
+
* https://nodejs.org/api/globals.html#class-compressionstream
|
|
447
|
+
* @since v18.0.0
|
|
448
|
+
*/
|
|
449
|
+
var CompressionStream: typeof globalThis extends {
|
|
450
|
+
onmessage: any;
|
|
451
|
+
// CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit.
|
|
452
|
+
// If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts
|
|
453
|
+
ReportingObserver: any;
|
|
454
|
+
CompressionStream: infer T;
|
|
455
|
+
} ? T
|
|
456
|
+
// TS 4.8, 4.9, 5.0
|
|
457
|
+
: typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? {
|
|
458
|
+
prototype: T;
|
|
459
|
+
new(format: "deflate" | "deflate-raw" | "gzip"): T;
|
|
460
|
+
}
|
|
461
|
+
: typeof import("stream/web").CompressionStream;
|
|
462
|
+
|
|
463
|
+
interface CountQueuingStrategy extends _CountQueuingStrategy {}
|
|
464
|
+
/**
|
|
465
|
+
* `CountQueuingStrategy` class is a global reference for `import { CountQueuingStrategy } from 'node:stream/web'`.
|
|
466
|
+
* https://nodejs.org/api/globals.html#class-countqueuingstrategy
|
|
467
|
+
* @since v18.0.0
|
|
468
|
+
*/
|
|
469
|
+
var CountQueuingStrategy: typeof globalThis extends { onmessage: any; CountQueuingStrategy: infer T } ? T
|
|
470
|
+
: typeof import("stream/web").CountQueuingStrategy;
|
|
471
|
+
|
|
472
|
+
interface DecompressionStream extends _DecompressionStream {}
|
|
473
|
+
/**
|
|
474
|
+
* `DecompressionStream` class is a global reference for `import { DecompressionStream } from 'node:stream/web'`.
|
|
475
|
+
* https://nodejs.org/api/globals.html#class-decompressionstream
|
|
476
|
+
* @since v18.0.0
|
|
477
|
+
*/
|
|
478
|
+
var DecompressionStream: typeof globalThis extends {
|
|
479
|
+
onmessage: any;
|
|
480
|
+
// CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit.
|
|
481
|
+
// If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts
|
|
482
|
+
ReportingObserver: any;
|
|
483
|
+
DecompressionStream: infer T extends object;
|
|
484
|
+
} ? T
|
|
485
|
+
// TS 4.8, 4.9, 5.0
|
|
486
|
+
: typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? {
|
|
487
|
+
prototype: T;
|
|
488
|
+
new(format: "deflate" | "deflate-raw" | "gzip"): T;
|
|
489
|
+
}
|
|
490
|
+
: typeof import("stream/web").DecompressionStream;
|
|
491
|
+
|
|
492
|
+
interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
|
|
493
|
+
|
|
494
|
+
interface ReadableByteStreamController extends _ReadableByteStreamController {}
|
|
495
|
+
/**
|
|
496
|
+
* `ReadableByteStreamController` class is a global reference for `import { ReadableByteStreamController } from 'node:stream/web'`.
|
|
497
|
+
* https://nodejs.org/api/globals.html#class-readablebytestreamcontroller
|
|
498
|
+
* @since v18.0.0
|
|
499
|
+
*/
|
|
500
|
+
var ReadableByteStreamController: typeof globalThis extends
|
|
501
|
+
{ onmessage: any; ReadableByteStreamController: infer T } ? T
|
|
502
|
+
: typeof import("stream/web").ReadableByteStreamController;
|
|
503
|
+
|
|
504
|
+
interface ReadableStream<R = any> extends _ReadableStream<R> {}
|
|
505
|
+
/**
|
|
506
|
+
* `ReadableStream` class is a global reference for `import { ReadableStream } from 'node:stream/web'`.
|
|
507
|
+
* https://nodejs.org/api/globals.html#class-readablestream
|
|
508
|
+
* @since v18.0.0
|
|
509
|
+
*/
|
|
510
|
+
var ReadableStream: typeof globalThis extends { onmessage: any; ReadableStream: infer T } ? T
|
|
511
|
+
: typeof import("stream/web").ReadableStream;
|
|
512
|
+
|
|
513
|
+
interface ReadableStreamBYOBReader extends _ReadableStreamBYOBReader {}
|
|
514
|
+
/**
|
|
515
|
+
* `ReadableStreamBYOBReader` class is a global reference for `import { ReadableStreamBYOBReader } from 'node:stream/web'`.
|
|
516
|
+
* https://nodejs.org/api/globals.html#class-readablestreambyobreader
|
|
517
|
+
* @since v18.0.0
|
|
518
|
+
*/
|
|
519
|
+
var ReadableStreamBYOBReader: typeof globalThis extends { onmessage: any; ReadableStreamBYOBReader: infer T }
|
|
520
|
+
? T
|
|
521
|
+
: typeof import("stream/web").ReadableStreamBYOBReader;
|
|
522
|
+
|
|
523
|
+
interface ReadableStreamBYOBRequest extends _ReadableStreamBYOBRequest {}
|
|
524
|
+
/**
|
|
525
|
+
* `ReadableStreamBYOBRequest` class is a global reference for `import { ReadableStreamBYOBRequest } from 'node:stream/web'`.
|
|
526
|
+
* https://nodejs.org/api/globals.html#class-readablestreambyobrequest
|
|
527
|
+
* @since v18.0.0
|
|
528
|
+
*/
|
|
529
|
+
var ReadableStreamBYOBRequest: typeof globalThis extends { onmessage: any; ReadableStreamBYOBRequest: infer T }
|
|
530
|
+
? T
|
|
531
|
+
: typeof import("stream/web").ReadableStreamBYOBRequest;
|
|
532
|
+
|
|
533
|
+
interface ReadableStreamDefaultController<R = any> extends _ReadableStreamDefaultController<R> {}
|
|
534
|
+
/**
|
|
535
|
+
* `ReadableStreamDefaultController` class is a global reference for `import { ReadableStreamDefaultController } from 'node:stream/web'`.
|
|
536
|
+
* https://nodejs.org/api/globals.html#class-readablestreamdefaultcontroller
|
|
537
|
+
* @since v18.0.0
|
|
538
|
+
*/
|
|
539
|
+
var ReadableStreamDefaultController: typeof globalThis extends
|
|
540
|
+
{ onmessage: any; ReadableStreamDefaultController: infer T } ? T
|
|
541
|
+
: typeof import("stream/web").ReadableStreamDefaultController;
|
|
542
|
+
|
|
543
|
+
interface ReadableStreamDefaultReader<R = any> extends _ReadableStreamDefaultReader<R> {}
|
|
544
|
+
/**
|
|
545
|
+
* `ReadableStreamDefaultReader` class is a global reference for `import { ReadableStreamDefaultReader } from 'node:stream/web'`.
|
|
546
|
+
* https://nodejs.org/api/globals.html#class-readablestreamdefaultreader
|
|
547
|
+
* @since v18.0.0
|
|
548
|
+
*/
|
|
549
|
+
var ReadableStreamDefaultReader: typeof globalThis extends
|
|
550
|
+
{ onmessage: any; ReadableStreamDefaultReader: infer T } ? T
|
|
551
|
+
: typeof import("stream/web").ReadableStreamDefaultReader;
|
|
552
|
+
|
|
553
|
+
interface TextDecoderStream extends _TextDecoderStream {}
|
|
554
|
+
/**
|
|
555
|
+
* `TextDecoderStream` class is a global reference for `import { TextDecoderStream } from 'node:stream/web'`.
|
|
556
|
+
* https://nodejs.org/api/globals.html#class-textdecoderstream
|
|
557
|
+
* @since v18.0.0
|
|
558
|
+
*/
|
|
559
|
+
var TextDecoderStream: typeof globalThis extends { onmessage: any; TextDecoderStream: infer T } ? T
|
|
560
|
+
: typeof import("stream/web").TextDecoderStream;
|
|
561
|
+
|
|
562
|
+
interface TextEncoderStream extends _TextEncoderStream {}
|
|
563
|
+
/**
|
|
564
|
+
* `TextEncoderStream` class is a global reference for `import { TextEncoderStream } from 'node:stream/web'`.
|
|
565
|
+
* https://nodejs.org/api/globals.html#class-textencoderstream
|
|
566
|
+
* @since v18.0.0
|
|
567
|
+
*/
|
|
568
|
+
var TextEncoderStream: typeof globalThis extends { onmessage: any; TextEncoderStream: infer T } ? T
|
|
569
|
+
: typeof import("stream/web").TextEncoderStream;
|
|
570
|
+
|
|
571
|
+
interface TransformStream<I = any, O = any> extends _TransformStream<I, O> {}
|
|
572
|
+
/**
|
|
573
|
+
* `TransformStream` class is a global reference for `import { TransformStream } from 'node:stream/web'`.
|
|
574
|
+
* https://nodejs.org/api/globals.html#class-transformstream
|
|
575
|
+
* @since v18.0.0
|
|
576
|
+
*/
|
|
577
|
+
var TransformStream: typeof globalThis extends { onmessage: any; TransformStream: infer T } ? T
|
|
578
|
+
: typeof import("stream/web").TransformStream;
|
|
579
|
+
|
|
580
|
+
interface TransformStreamDefaultController<O = any> extends _TransformStreamDefaultController<O> {}
|
|
581
|
+
/**
|
|
582
|
+
* `TransformStreamDefaultController` class is a global reference for `import { TransformStreamDefaultController } from 'node:stream/web'`.
|
|
583
|
+
* https://nodejs.org/api/globals.html#class-transformstreamdefaultcontroller
|
|
584
|
+
* @since v18.0.0
|
|
585
|
+
*/
|
|
586
|
+
var TransformStreamDefaultController: typeof globalThis extends
|
|
587
|
+
{ onmessage: any; TransformStreamDefaultController: infer T } ? T
|
|
588
|
+
: typeof import("stream/web").TransformStreamDefaultController;
|
|
589
|
+
|
|
590
|
+
interface WritableStream<W = any> extends _WritableStream<W> {}
|
|
591
|
+
/**
|
|
592
|
+
* `WritableStream` class is a global reference for `import { WritableStream } from 'node:stream/web'`.
|
|
593
|
+
* https://nodejs.org/api/globals.html#class-writablestream
|
|
594
|
+
* @since v18.0.0
|
|
595
|
+
*/
|
|
596
|
+
var WritableStream: typeof globalThis extends { onmessage: any; WritableStream: infer T } ? T
|
|
597
|
+
: typeof import("stream/web").WritableStream;
|
|
598
|
+
|
|
599
|
+
interface WritableStreamDefaultController extends _WritableStreamDefaultController {}
|
|
600
|
+
/**
|
|
601
|
+
* `WritableStreamDefaultController` class is a global reference for `import { WritableStreamDefaultController } from 'node:stream/web'`.
|
|
602
|
+
* https://nodejs.org/api/globals.html#class-writablestreamdefaultcontroller
|
|
603
|
+
* @since v18.0.0
|
|
604
|
+
*/
|
|
605
|
+
var WritableStreamDefaultController: typeof globalThis extends
|
|
606
|
+
{ onmessage: any; WritableStreamDefaultController: infer T } ? T
|
|
607
|
+
: typeof import("stream/web").WritableStreamDefaultController;
|
|
608
|
+
|
|
609
|
+
interface WritableStreamDefaultWriter<W = any> extends _WritableStreamDefaultWriter<W> {}
|
|
610
|
+
/**
|
|
611
|
+
* `WritableStreamDefaultWriter` class is a global reference for `import { WritableStreamDefaultWriter } from 'node:stream/web'`.
|
|
612
|
+
* https://nodejs.org/api/globals.html#class-writablestreamdefaultwriter
|
|
613
|
+
* @since v18.0.0
|
|
614
|
+
*/
|
|
615
|
+
var WritableStreamDefaultWriter: typeof globalThis extends
|
|
616
|
+
{ onmessage: any; WritableStreamDefaultWriter: infer T } ? T
|
|
617
|
+
: typeof import("stream/web").WritableStreamDefaultWriter;
|
|
618
|
+
}
|
|
293
619
|
}
|
|
294
|
-
declare module "stream/web" {
|
|
295
|
-
export * from "
|
|
620
|
+
declare module "node:stream/web" {
|
|
621
|
+
export * from "stream/web";
|
|
296
622
|
}
|