1 | import type { CollectionProp, QueryParams } from '../common-types';
|
2 | type IterableFn<P = any, T = any> = (params: P) => Promise<CollectionProp<T>>;
|
3 | type ParamsType<T extends IterableFn> = T extends (params: infer P) => any ? P : never;
|
4 | export declare const asIterator: <P extends QueryParams, T, F extends IterableFn<P, T>>(fn: F, params: ParamsType<F>) => AsyncIterable<T>;
|
5 | export {};
|