import { Worker as NodeWorker } from 'worker_threads';
export declare class WorkerWrapper {
    private worker;
    constructor(worker: Worker | NodeWorker);
    postMessage(data: any): void;
    terminate(): void;
    onMessage(cb: (data: any) => void): void;
    onError(cb: (err: any) => void): void;
}
