import { AsyncIterableX } from '../asynciterablex.js'; import { MonoTypeOperatorAsyncFunction } from '../../interfaces.js'; /** @ignore */ export declare class FinallyAsyncIterable extends AsyncIterableX { private _source; private _action; constructor(source: AsyncIterable, action: () => void | Promise); [Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator, void, unknown>; } /** * Invokes a specified asynchronous action after the source async-iterable sequence terminates gracefully or exceptionally. * * @template TSource The type of the elements in the source sequence. * @param {(() => void | Promise)} action Action to invoke and await asynchronously after the source async-iterable sequence terminates * @returns {MonoTypeOperatorAsyncFunction} An operator that returns the source sequence with the * action-invoking termination behavior applied. */ export declare function finalize(action: () => void | Promise): MonoTypeOperatorAsyncFunction;