import { IWorkerEventBus } from "../worker-server"; import { IWorkerClient } from './contracts'; export declare abstract class WorkerClient implements IWorkerClient { protected readonly _workerFilePath: string; options: TOptions; private _worker; private _workerEventBus; protected constructor({ workerFilePath, preInit, options, }: { workerFilePath: string; preInit: boolean; options: TOptions; }); private _initPromise; init(): Promise; private __init; protected abstract _init(workerEventBus: IWorkerEventBus): Promise | void; terminate(): Promise; protected abstract _terminate(): Promise | void; }