import { sink } from './sink.js';
import { source } from './source.js';
/**
 * Convert a Node.js [`Duplex`](https://nodejs.org/dist/latest/docs/api/stream.html#class-streamduplex)
 * stream to a [duplex iterable](https://achingbrain.github.io/it-stream-types/interfaces/Duplex.html).
 */
export function duplex(duplex) {
    return {
        sink: sink(duplex),
        source: source(duplex)
    };
}
//# sourceMappingURL=duplex.js.map