/** * Reads through a Generator, awaiting `cb` on each element. * If the returned result is truthy, that result is emitted. Otherwise, nothing is emitted. */ export declare function filterMap(gen: AsyncGenerator, cb: (ele: T) => R): AsyncGenerator, number, unknown>; /** * Iterates a Generator, and runs the given callback for each element. * @returns The total count of elements iterated. */ export declare function forGen(gen: AsyncGenerator, cb: (ele: T, idx: number, stop: Function) => void): Promise;