import { AsyncIterableX } from '../asynciterablex.js'; import { OperatorAsyncFunction } from '../../interfaces.js'; /** @ignore */ export declare class TakeWhileAsyncIterable extends AsyncIterableX { private _source; private _predicate; constructor(source: AsyncIterable, predicate: (value: TSource, index: number, signal?: AbortSignal) => boolean | Promise); [Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator, void, unknown>; } /** * Returns elements from an async-iterable sequence as long as a specified condition is true. * * @template T The type of the elements in the source sequence. * @template S The result of the predicate that is truthy/falsy. * @param {(value: T, index: number, signal?: AbortSignal) => value is S} predicate A function to test each element for a condition. * @returns {OperatorAsyncFunction} An async-iterable sequence that contains the elements from the input sequence that occur * before the element at which the test no longer passes. */ export declare function takeWhile(predicate: (value: T, index: number, signal?: AbortSignal) => value is S): OperatorAsyncFunction; /** * Returns elements from an async-iterable sequence as long as a specified condition is true. * * @template T The type of the elements in the source sequence. * @param {((value: T, index: number, signal?: AbortSignal) => boolean | Promise)} predicate A function to test each element for a condition. * @returns {OperatorAsyncFunction} An async-iterable sequence that contains the elements from the input sequence that occur * before the element at which the test no longer passes. */ export declare function takeWhile(predicate: (value: T, index: number, signal?: AbortSignal) => boolean | Promise): OperatorAsyncFunction;