import { AsyncIterableX } from '../asynciterablex.js'; import { PartialAsyncObserver } from '../../observer.js'; import { MonoTypeOperatorAsyncFunction } from '../../interfaces.js'; /** @ignore */ export declare class TapAsyncIterable extends AsyncIterableX { private _source; private _observer; constructor(source: AsyncIterable, observer: PartialAsyncObserver); [Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator, void, unknown>; } /** * Invokes an action for each element in the async-iterable sequence, and propagates all observer * messages through the result sequence. This method can be used for debugging, logging, etc. by * intercepting the message stream to run arbitrary actions for messages on the pipeline. * * @template TSource The type of the elements in the source sequence. * @param {PartialAsyncObserver} observer Observer whose methods to invoke as part of the source sequence's observation. * @returns {MonoTypeOperatorAsyncFunction} The source sequence with the side-effecting behavior applied. */ export declare function tap(observer: PartialAsyncObserver): MonoTypeOperatorAsyncFunction; /** * Invokes an action for each element in the async-iterable sequence, and propagates all observer * messages through the result sequence. This method can be used for debugging, logging, etc. by * intercepting the message stream to run arbitrary actions for messages on the pipeline. * * @template TSource The type of the elements in the source sequence. * @param {(((value: TSource) => any) | null)} [next] Function to invoke for each element in the async-iterable sequence. * @param {(((err: any) => any) | null)} [error] Function to invoke upon exceptional termination of the async-iterable sequence. * @param {((() => any) | null)} [complete] Function to invoke upon graceful termination of the async-iterable sequence. * @returns {MonoTypeOperatorAsyncFunction} The source sequence with the side-effecting behavior applied. */ export declare function tap(next?: ((value: TSource) => any) | null, error?: ((err: any) => any) | null, complete?: (() => any) | null): MonoTypeOperatorAsyncFunction;