// Type definitions for pull-stream 3.6 // Project: https://pull-stream.github.io // Definitions by: Michael de Wit // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.4 import { count as countImport, empty as emptyImport, error as errorImport, infinite as infiniteImport, keys as keysImport, once as onceImport, values as valuesImport } from './sources'; import { asyncMap as asyncMapImport, filterNot as filterNotImport, filter as filterImport, flatten as flattenImport, map as mapImport, nonUnique as nonUniqueImport, take as takeImport, through as throughImport, unique as uniqueImport } from './throughs'; import { collect as collectImport, concat as concatImport, drain as drainImport, find as findImport, log as logImport, onEnd as onEndImport, reduce as reduceImport } from './sinks'; /** * Pipe data through a number of `pull-stream`s */ declare function pull(): undefined; declare function pull(source: pull.Source, sink: pull.Sink): undefined; declare function pull(source: pull.Source, t1: pull.Through, sink: pull.Sink): undefined; declare function pull(source: pull.Source, t1: pull.Through, t2: pull.Through, sink: pull.Sink): undefined; declare function pull(source: pull.Source, t1: pull.Through, t2: pull.Through, t3: pull.Through, sink: pull.Sink): undefined; declare function pull( source: pull.Source, t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through, sink: pull.Sink ): undefined; declare function pull( source: pull.Source, t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through, t5: pull.Through, sink: pull.Sink ): undefined; declare function pull(sink: pull.Sink): pull.Sink; declare function pull(t1: pull.Through, sink: pull.Sink): pull.Sink; declare function pull(t1: pull.Through, t2: pull.Through, sink: pull.Sink): pull.Sink; declare function pull(t1: pull.Through, t2: pull.Through, t3: pull.Through, sink: pull.Sink): pull.Sink; declare function pull(t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through, sink: pull.Sink): pull.Sink; declare function pull( t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through, t5: pull.Through, sink: pull.Sink ): pull.Sink; declare function pull( t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through, t5: pull.Through, t6: pull.Through, sink: pull.Sink ): pull.Sink; declare function pull(source: pull.Source): pull.Source; declare function pull(source: pull.Source, t1: pull.Through): pull.Source; declare function pull(source: pull.Source, t1: pull.Through, t2: pull.Through): pull.Source; declare function pull(source: pull.Source, t1: pull.Through, t2: pull.Through, t3: pull.Through): pull.Source; declare function pull(source: pull.Source, t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through): pull.Source; declare function pull( source: pull.Source, t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through, t5: pull.Through ): pull.Source; declare function pull( source: pull.Source, t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through, t5: pull.Through, t6: pull.Through ): pull.Source; declare function pull(t1: pull.Through): pull.Through; declare function pull(t1: pull.Through, t2: pull.Through): pull.Through; declare function pull(t1: pull.Through, t2: pull.Through, t3: pull.Through): pull.Through; declare function pull(t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through): pull.Through; declare function pull( t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through, t5: pull.Through ): pull.Through; declare function pull( t1: pull.Through, t2: pull.Through, t3: pull.Through, t4: pull.Through, t5: pull.Through, t6: pull.Through ): pull.Through; declare function pull(...pullStreams: ReadonlyArray<(pull.Source | pull.Sink | pull.Through)>): pull.Source | pull.Sink | pull.Through | undefined; declare namespace pull { type Source = (endOrError: Error | boolean | null, cb: (endOrError: Error | boolean | null, data: T) => any) => undefined; type Sink = (source: Source) => undefined; type Through = (source: Source) => Source; const count: typeof countImport; const empty: typeof emptyImport; const error: typeof errorImport; const infinite: typeof infiniteImport; const keys: typeof keysImport; const once: typeof onceImport; const values: typeof valuesImport; const asyncMap: typeof asyncMapImport; const filterNot: typeof filterNotImport; const filter: typeof filterImport; const flatten: typeof flattenImport; const map: typeof mapImport; const nonUnique: typeof nonUniqueImport; const take: typeof takeImport; const through: typeof throughImport; const unique: typeof uniqueImport; const collect: typeof collectImport; const concat: typeof concatImport; const drain: typeof drainImport; const find: typeof findImport; const log: typeof logImport; const onEnd: typeof onEndImport; const reduce: typeof reduceImport; } export = pull;