import { MessageEvent } from "@foxglove/studio-base/players/types";
import { DeserializationErrorCallback } from "./deserialization.worker";
import { FoxgloveMessage } from "../connection/communicator.js";
export type MessageHandler = {
    handle: (message: FoxgloveMessage, errorCallback?: DeserializationErrorCallback) => void;
    cleanup: () => void;
};
export declare function createMessageHandler(callback: (event: MessageEvent) => void): MessageHandler;
//# sourceMappingURL=message-handler.d.ts.map