const requireNodeModule = (moduleName) => {
    if (typeof window !== 'undefined' && typeof window.require === 'function') {
        return (window.require)(moduleName);
    }
    throw new Error(`Node.js module "${moduleName}" is not available. Ensure nodeIntegration is enabled.`);
};
const mod = requireNodeModule('node:stream');
export default mod;
export const PassThrough = mod.PassThrough;
export const Readable = mod.Readable;
export const Writable = mod.Writable;
export const Duplex = mod.Duplex;
export const Transform = mod.Transform;
export const pipeline = mod.pipeline;
export const finished = mod.finished;
export const Stream = mod.Stream;
