export declare function parallel(threads: number, items: T[], fn: (item: T) => Promise): Promise;