import { AsyncIterableX } from '../asynciterablex';
import { OperatorAsyncFunction } from '../../interfaces';
export declare class FlatMapAsyncIterable<TSource, TResult> extends AsyncIterableX<TResult> {
    private _source;
    private _selector;
    private _thisArg?;
    constructor(source: AsyncIterable<TSource>, selector: (value: TSource, index: number, signal?: AbortSignal) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>, thisArg?: any);
    [Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator<TResult, void, unknown>;
}
/**
 * Projects each element of an async-iterable sequence to an async-iterable sequence and merges
 * the resulting async-iterable sequences into one async-iterable sequence.
 *
 * @export
 * @template TSource The type of the elements in the source sequence.
 * @template TResult The type of the elements in the projected inner sequences and the elements in the merged result sequence.
 * @param {((
 *     value: TSource,
 *     index: number,
 *     signal?: AbortSignal
 *   ) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>)} selector A transform function to apply to each element.
 * @param {*} [thisArg] Option this for binding to the selector.
 * @returns {OperatorAsyncFunction<TSource, TResult>} An operator that creates an async-iterable sequence whose
 * elements are the result of invoking the one-to-many transform function on each element of the input sequence.
 */
export declare function flatMap<TSource, TResult>(selector: (value: TSource, index: number, signal?: AbortSignal) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>, thisArg?: any): OperatorAsyncFunction<TSource, TResult>;
