/** * converts `Generator` function into `IterableIterator` * * @param gen - function that returns `Generator` object * @returns `IterableIterator` without "throw" and "return" methods */ export declare function fromGen(gen: () => Generator): IterableIterator; /** * converts `AsyncGenerator` function into `AsyncIterableIterator` * * @param gen - function that returns `AsyncGenerator` object * @returns `IterableIterator` without "throw" and "return" methods */ export declare function fromGen(gen: () => AsyncGenerator): AsyncIterableIterator;