export declare function runTask(workerScript: string, taskData: T): Promise;