import { IterableX } from '../iterablex.js'; import { OperatorFunction } from '../../interfaces.js'; /** @ignore */ export declare class CatchWithIterable extends IterableX { private _source; private _handler; constructor(source: Iterable, handler: (error: any) => Iterable); [Symbol.iterator](): Generator; } /** * Continues an async-iterable sequence that is terminated by an exception with the * async-iterable sequence produced by the handler. * * @template TSource The type of the elements in the source sequence. * @template TResult The type of elements from the handler function. * @param {(error: any) => Iterable} handler Error handler function, producing another async-iterable sequence. * @returns {(OperatorFunction)} An operator which continues an async-iterable sequence that is terminated by * an exception with the specified handler. */ export declare function catchError(handler: (error: any) => Iterable): OperatorFunction;