import { IterableX } from './iterablex'; export declare class FinallyIterable extends IterableX { private _source; private _action; constructor(source: Iterable, action: () => void); [Symbol.iterator](): IterableIterator; } /** * Creates a sequence whose termination or disposal of an iterator causes a finally action to be executed. * @param {Iterator} source Source sequence * @param {function(): void)} action Action to run upon termination of the sequence, or when an iterator is disposed. * @return {Iterable} Source sequence with guarantees on the invocation of the finally action. */ export declare function _finally(source: Iterable, action: () => void): IterableX;