import type { PHPRequest, PHPResponse, RemoteAPI } from '@php-wasm/universal';
import type { PlaygroundCliBlueprintV1Worker as PlaygroundCliWorkerV1 } from './blueprints-v1/worker-thread-v1';
import type { PlaygroundCliBlueprintV2Worker as PlaygroundCliWorkerV2 } from './blueprints-v2/worker-thread-v2';
type PlaygroundCliWorker = PlaygroundCliWorkerV1 | PlaygroundCliWorkerV2;
type WorkerLoad = {
    worker: RemoteAPI<PlaygroundCliWorker>;
    activeRequests: Set<Promise<PHPResponse>>;
};
export declare class LoadBalancer {
    workerLoads: WorkerLoad[];
    constructor(initialWorker: RemoteAPI<PlaygroundCliWorker>);
    addWorker(worker: RemoteAPI<PlaygroundCliWorker>): void;
    handleRequest(request: PHPRequest): Promise<PHPResponse>;
}
export {};
