import { UpdateChannelParams } from '@statechannels/client-api-schema'; import P from 'pino'; import { EngineConfig, MultipleChannelOutput, SingleChannelOutput } from '../types'; export declare class WorkerManager { private pool?; private threadAmount; private logger; /** * * @param engineConfig engine config to be passed to the worker engine * @param onNewWorker callback that is executed when a new worker is created */ constructor(engineConfig: EngineConfig, logger: P.Logger); warmUpThreads(): Promise; /** * * @param {operation, args}: operation & arguments to send to worker * @returns a promise that * - resolves when the worker thread sends a "right" message, containing a result * - rejects rejects worker thread sends a "left" message, containing an error * * Sends {operation, args} to a worker thread. */ private sendOperation; pushMessage(args: unknown): Promise; pushUpdate(args: unknown): Promise; updateChannel(args: UpdateChannelParams): Promise; destroy(): Promise; } //# sourceMappingURL=manager.d.ts.map