import { AsyncIterableX } from '../asynciterablex.js'; import { OperatorAsyncFunction } from '../../interfaces.js'; /** @ignore */ export declare class CatchWithAsyncIterable extends AsyncIterableX { private _source; private _handler; constructor(source: AsyncIterable, handler: (error: any, signal?: AbortSignal) => AsyncIterable | Promise>); [Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator | Awaited, void, unknown>; } /** * 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, * signal?: AbortSignal * ) => AsyncIterable | Promise>)} handler Error handler function, producing another async-iterable sequence. * @returns {(OperatorAsyncFunction)} 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, signal?: AbortSignal) => AsyncIterable | Promise>): OperatorAsyncFunction;