export declare const createWorkerClient: <T extends object>(worker: Worker) => { [key in keyof T]: T[key] extends Function ? T[key] extends (...args: infer U) => infer R ? (...args: U) => R extends Promise<any> ? R : Promise<R> : never : () => T[key] extends Promise<any> ? T[key] : Promise<T[key]>; };
