import { ServiceCallPayload } from "@foxglove/ws-protocol";
import { FoxgloveCommunicator, WorkerInputMessage, WorkerOutputMessage } from "../communicator.js";
export declare class WsWorker extends FoxgloveCommunicator {
    #private;
    protected send(message: WorkerOutputMessage): void;
    protected sendWithTransfer(message: WorkerOutputMessage, transfer: ArrayBuffer[]): void;
    protected sendServiceCallRequest(request: ServiceCallPayload): void;
    protected isReady(): boolean;
    constructor(wsUrl: string);
    subscribe(topics: string[]): void;
    unsubscribe(topics: string[]): void;
    callService(args: (WorkerInputMessage & {
        type: "call_service";
    })["data"]): void;
    close(): void;
}
//# sourceMappingURL=worker.d.ts.map