"use strict";
/**
 * Stream Module (Node.js entry)
 *
 * Public entrypoint for stream utilities and classes.
 *
 * Notes:
 * - This file is intentionally export-only (tree-shaking friendly).
 * - Browser builds should import from `@stream/index.browser`.
 *
 * @example
 * ```ts
 * import { pipeline, createTransform, createCollector } from "@stream";
 *
 * const upper = createTransform<Uint8Array, Uint8Array>(chunk => chunk);
 * const out = createCollector<Uint8Array>();
 * await pipeline(source, upper, out);
 * ```
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.consumers = exports.Writeable = exports.duplexPair = exports.setDefaultHighWaterMark = exports.getDefaultHighWaterMark = exports.isErrored = exports.isDisturbed = exports.isDestroyed = exports.isStream = exports.isDuplex = exports.isTransform = exports.isWritable = exports.isReadable = exports.promisify = exports.once = exports.finishedAll = exports.compose = exports.addAbortSignal = exports.copyStream = exports.drainStream = exports.streamToString = exports.streamToBuffer = exports.streamToUint8Array = exports.streamToPromise = exports.finished = exports.pipeline = exports.createNullWritable = exports.createEmptyReadable = exports.createDuplex = exports.createReadableFromPromise = exports.createReadableFromGenerator = exports.createReadableFromAsyncIterable = exports.createReadableFromArray = exports.createBufferedStream = exports.createPullStream = exports.createPassThrough = exports.createCollector = exports.createTransform = exports.createWritable = exports.createReadable = exports.BufferChunk = exports.StringChunk = exports.BufferedStream = exports.PullStream = exports.Collector = exports.PassThrough = exports.Duplex = exports.Transform = exports.Writable = exports.Readable = void 0;
exports.filter = exports.transform = exports.fromBytes = exports.fromJSON = exports.fromString = exports.bytes = exports.json = exports.text = exports.collect = exports.concatUint8Arrays = exports.bufferToString = exports.toUint8Array = exports.uint8ArraySlice = exports.uint8ArrayIndexOf = exports.uint8ArrayEquals = exports.uint8ArrayToString = exports.stringToUint8Array = exports.textDecoder = exports.textEncoder = exports.TransactionalChunkedBuilder = exports.ChunkedBuilder = exports.EventEmitter = exports.promises = void 0;
var streams_1 = require("./streams.js");
Object.defineProperty(exports, "Readable", { enumerable: true, get: function () { return streams_1.Readable; } });
Object.defineProperty(exports, "Writable", { enumerable: true, get: function () { return streams_1.Writable; } });
Object.defineProperty(exports, "Transform", { enumerable: true, get: function () { return streams_1.Transform; } });
Object.defineProperty(exports, "Duplex", { enumerable: true, get: function () { return streams_1.Duplex; } });
Object.defineProperty(exports, "PassThrough", { enumerable: true, get: function () { return streams_1.PassThrough; } });
Object.defineProperty(exports, "Collector", { enumerable: true, get: function () { return streams_1.Collector; } });
Object.defineProperty(exports, "PullStream", { enumerable: true, get: function () { return streams_1.PullStream; } });
Object.defineProperty(exports, "BufferedStream", { enumerable: true, get: function () { return streams_1.BufferedStream; } });
Object.defineProperty(exports, "StringChunk", { enumerable: true, get: function () { return streams_1.StringChunk; } });
Object.defineProperty(exports, "BufferChunk", { enumerable: true, get: function () { return streams_1.BufferChunk; } });
Object.defineProperty(exports, "createReadable", { enumerable: true, get: function () { return streams_1.createReadable; } });
Object.defineProperty(exports, "createWritable", { enumerable: true, get: function () { return streams_1.createWritable; } });
Object.defineProperty(exports, "createTransform", { enumerable: true, get: function () { return streams_1.createTransform; } });
Object.defineProperty(exports, "createCollector", { enumerable: true, get: function () { return streams_1.createCollector; } });
Object.defineProperty(exports, "createPassThrough", { enumerable: true, get: function () { return streams_1.createPassThrough; } });
Object.defineProperty(exports, "createPullStream", { enumerable: true, get: function () { return streams_1.createPullStream; } });
Object.defineProperty(exports, "createBufferedStream", { enumerable: true, get: function () { return streams_1.createBufferedStream; } });
Object.defineProperty(exports, "createReadableFromArray", { enumerable: true, get: function () { return streams_1.createReadableFromArray; } });
Object.defineProperty(exports, "createReadableFromAsyncIterable", { enumerable: true, get: function () { return streams_1.createReadableFromAsyncIterable; } });
Object.defineProperty(exports, "createReadableFromGenerator", { enumerable: true, get: function () { return streams_1.createReadableFromGenerator; } });
Object.defineProperty(exports, "createReadableFromPromise", { enumerable: true, get: function () { return streams_1.createReadableFromPromise; } });
Object.defineProperty(exports, "createDuplex", { enumerable: true, get: function () { return streams_1.createDuplex; } });
Object.defineProperty(exports, "createEmptyReadable", { enumerable: true, get: function () { return streams_1.createEmptyReadable; } });
Object.defineProperty(exports, "createNullWritable", { enumerable: true, get: function () { return streams_1.createNullWritable; } });
Object.defineProperty(exports, "pipeline", { enumerable: true, get: function () { return streams_1.pipeline; } });
Object.defineProperty(exports, "finished", { enumerable: true, get: function () { return streams_1.finished; } });
Object.defineProperty(exports, "streamToPromise", { enumerable: true, get: function () { return streams_1.streamToPromise; } });
Object.defineProperty(exports, "streamToUint8Array", { enumerable: true, get: function () { return streams_1.streamToUint8Array; } });
Object.defineProperty(exports, "streamToBuffer", { enumerable: true, get: function () { return streams_1.streamToBuffer; } });
Object.defineProperty(exports, "streamToString", { enumerable: true, get: function () { return streams_1.streamToString; } });
Object.defineProperty(exports, "drainStream", { enumerable: true, get: function () { return streams_1.drainStream; } });
Object.defineProperty(exports, "copyStream", { enumerable: true, get: function () { return streams_1.copyStream; } });
Object.defineProperty(exports, "addAbortSignal", { enumerable: true, get: function () { return streams_1.addAbortSignal; } });
Object.defineProperty(exports, "compose", { enumerable: true, get: function () { return streams_1.compose; } });
Object.defineProperty(exports, "finishedAll", { enumerable: true, get: function () { return streams_1.finishedAll; } });
Object.defineProperty(exports, "once", { enumerable: true, get: function () { return streams_1.once; } });
Object.defineProperty(exports, "promisify", { enumerable: true, get: function () { return streams_1.promisify; } });
Object.defineProperty(exports, "isReadable", { enumerable: true, get: function () { return streams_1.isReadable; } });
Object.defineProperty(exports, "isWritable", { enumerable: true, get: function () { return streams_1.isWritable; } });
Object.defineProperty(exports, "isTransform", { enumerable: true, get: function () { return streams_1.isTransform; } });
Object.defineProperty(exports, "isDuplex", { enumerable: true, get: function () { return streams_1.isDuplex; } });
Object.defineProperty(exports, "isStream", { enumerable: true, get: function () { return streams_1.isStream; } });
Object.defineProperty(exports, "isDestroyed", { enumerable: true, get: function () { return streams_1.isDestroyed; } });
Object.defineProperty(exports, "isDisturbed", { enumerable: true, get: function () { return streams_1.isDisturbed; } });
Object.defineProperty(exports, "isErrored", { enumerable: true, get: function () { return streams_1.isErrored; } });
Object.defineProperty(exports, "getDefaultHighWaterMark", { enumerable: true, get: function () { return streams_1.getDefaultHighWaterMark; } });
Object.defineProperty(exports, "setDefaultHighWaterMark", { enumerable: true, get: function () { return streams_1.setDefaultHighWaterMark; } });
Object.defineProperty(exports, "duplexPair", { enumerable: true, get: function () { return streams_1.duplexPair; } });
Object.defineProperty(exports, "Writeable", { enumerable: true, get: function () { return streams_1.normalizeWritable; } });
Object.defineProperty(exports, "consumers", { enumerable: true, get: function () { return streams_1.consumers; } });
Object.defineProperty(exports, "promises", { enumerable: true, get: function () { return streams_1.promises; } });
var event_emitter_1 = require("./event-emitter.js");
Object.defineProperty(exports, "EventEmitter", { enumerable: true, get: function () { return event_emitter_1.EventEmitter; } });
var chunked_builder_1 = require("./chunked-builder.js");
Object.defineProperty(exports, "ChunkedBuilder", { enumerable: true, get: function () { return chunked_builder_1.ChunkedBuilder; } });
Object.defineProperty(exports, "TransactionalChunkedBuilder", { enumerable: true, get: function () { return chunked_builder_1.TransactionalChunkedBuilder; } });
var shared_1 = require("./shared.js");
Object.defineProperty(exports, "textEncoder", { enumerable: true, get: function () { return shared_1.textEncoder; } });
Object.defineProperty(exports, "textDecoder", { enumerable: true, get: function () { return shared_1.textDecoder; } });
Object.defineProperty(exports, "stringToUint8Array", { enumerable: true, get: function () { return shared_1.stringToUint8Array; } });
Object.defineProperty(exports, "uint8ArrayToString", { enumerable: true, get: function () { return shared_1.uint8ArrayToString; } });
Object.defineProperty(exports, "uint8ArrayEquals", { enumerable: true, get: function () { return shared_1.uint8ArrayEquals; } });
Object.defineProperty(exports, "uint8ArrayIndexOf", { enumerable: true, get: function () { return shared_1.uint8ArrayIndexOf; } });
Object.defineProperty(exports, "uint8ArraySlice", { enumerable: true, get: function () { return shared_1.uint8ArraySlice; } });
Object.defineProperty(exports, "toUint8Array", { enumerable: true, get: function () { return shared_1.toUint8Array; } });
Object.defineProperty(exports, "bufferToString", { enumerable: true, get: function () { return shared_1.bufferToString; } });
Object.defineProperty(exports, "concatUint8Arrays", { enumerable: true, get: function () { return shared_1.concatUint8Arrays; } });
var utils_1 = require("./utils.js");
Object.defineProperty(exports, "collect", { enumerable: true, get: function () { return utils_1.collect; } });
Object.defineProperty(exports, "text", { enumerable: true, get: function () { return utils_1.text; } });
Object.defineProperty(exports, "json", { enumerable: true, get: function () { return utils_1.json; } });
Object.defineProperty(exports, "bytes", { enumerable: true, get: function () { return utils_1.bytes; } });
Object.defineProperty(exports, "fromString", { enumerable: true, get: function () { return utils_1.fromString; } });
Object.defineProperty(exports, "fromJSON", { enumerable: true, get: function () { return utils_1.fromJSON; } });
Object.defineProperty(exports, "fromBytes", { enumerable: true, get: function () { return utils_1.fromBytes; } });
Object.defineProperty(exports, "transform", { enumerable: true, get: function () { return utils_1.transform; } });
Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return utils_1.filter; } });
