declare module "event-stream" { import { Stream } from 'stream'; import { ThroughStream as _ThroughStream} from 'through'; import { MapStream } from 'map-stream'; import * as File from 'vinyl'; export interface ThroughStream extends _ThroughStream { queue(data: File | null); push(data: File | null); paused: boolean; } function merge(streams: Stream[]): ThroughStream; function merge(...streams: Stream[]): ThroughStream; function concat(...stream: Stream[]): ThroughStream; function duplex(istream: Stream, ostream: Stream): ThroughStream; function through(write?: (data: any) => void, end?: () => void, opts?: {autoDestroy: boolean; }): ThroughStream; function readArray(array: T[]): ThroughStream; function writeArray(cb: (err:Error, array:T[]) => void): ThroughStream; function mapSync(cb: (data:I) => O): ThroughStream; function map(cb: (data:I, cb:(err?:Error, data?: O)=>void) => O): ThroughStream; function readable(asyncFunction: Function): MapStream; }