/// import { Duplex, DuplexOptions } from "stream"; interface ListStreamMethod { (callback?: (err: Error, data: any[]) => void): ListStream; (options?: DuplexOptions, callback?: (err: Error, data: any[]) => void): ListStream; } interface ListStreamConstructor extends ListStreamMethod { new(callback?: (err: Error, data: any[]) => void): ListStream; new(options?: DuplexOptions, callback?: (err: Error, data: any[]) => void): ListStream; obj: ListStreamMethod; } declare let ListStream: ListStreamConstructor; interface ListStream extends Duplex { append(chunk: any): void; duplicate(): ListStream; end(): this; get(index: number): any; length: number; } export = ListStream;