/**
 * 调用webworker的方法
 * @param type
 * @param data
 * @returns Promise<any>
 */
export declare function triggerWorker<T = any, R = any>(worker: Worker, type: string, data: T): Promise<R>;
export declare function toWebWorker(obj: Record<string, (...args: any[]) => any>): () => void;
