type TaskFunction = (data: T) => U; export declare function asyncFunctionWithWorker(fn: TaskFunction): TaskFunction>; export {};