import { AsyncIterableX } from './asynciterablex'; /** * Returns an async-iterable sequence that invokes the specified factory function whenever a call to [Symbol.asyncIterator] has been made. * * @export * @template TSource The type of the elements in the sequence returned by the factory function, and in the resulting sequence. * @param {((signal?: AbortSignal) => AsyncIterable | Promise>)} factory Async-iterable factory function to * invoke for each call to [Symbol.asyncIterator]. * @returns {AsyncIterableX} An async-iterable sequence whose observers trigger an invocation of the given async-iterable factory function. */ export declare function defer(factory: (signal?: AbortSignal) => AsyncIterable | Promise>): AsyncIterableX;