import { Readable, Writable } from "node:stream"; declare const $streams: unique symbol; export interface NodeOptions { id: string; } export declare class Node { static [$streams]: WeakSet; protected _stream: StreamT; protected _queue: InT[]; protected _size: number; protected _id: string; constructor(stream: StreamT, options?: NodeOptions); connect(...nodes: Node[]): this; disconnect(...nodes: Node[]): this; protected _write(data: InT, encoding?: NodeJS.BufferEncoding): Promise; } export {};