// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/through2/through2.d.ts declare module 'through2' { import stream = require('stream'); type TransfofmCallback = (err?: any, data?: any) => void; type TransformFunction = (chunk: any, enc: string, callback: TransfofmCallback) => void; type FlashCallback = (flushCallback: () => void) => void; function through2(transform?: TransformFunction, flush?: FlashCallback): NodeJS.ReadWriteStream; function through2(opts?: stream.DuplexOptions, transform?: TransformFunction, flush?: FlashCallback): NodeJS.ReadWriteStream; namespace through2 { export function obj(transform?: TransformFunction, flush?: FlashCallback): NodeJS.ReadWriteStream; export function push(data: any): void; } export = through2; }