import type { Async as A } from './async'; type AsyncIteratorFn = (...args: PARAMS) => AsyncIterator; declare class AsyncFunctionWrapperBase implements AsyncIterable { #private; constructor(fn: AsyncIteratorFn, args: PARAMS); [Symbol.asyncIterator](): A.Generator; } declare const AsyncFunctionWrapper_base: import("./types").Constructor & import("./ienhancement").IEnhancements, [fn: AsyncIteratorFn, args: any[]]>; export declare class AsyncFunctionWrapper extends AsyncFunctionWrapper_base { constructor(fn: AsyncIteratorFn, args: PARAMS); } export declare namespace Async { /** * Turn a function that returns an `AsyncIterator` into an `AsyncIterable` object which can be repeatedly * iterated over, invoking the function each time to produce a new `AsyncIterator`. * @param fn A function that returns an `AsyncIterator` * @param args Arguments to be passed to the function * @returns */ const wrap: (fn: AsyncIteratorFn, ...args: PARAMS) => AsyncFunctionWrapper; } export {}; //# sourceMappingURL=async-wrap.d.ts.map