import pull = require(".."); /** * Drain the stream and then call `cb` when done. */ declare function onEnd(cb?: (err: pull.EndOrError) => unknown): pull.Sink; export = onEnd;