import { firstValueFrom, from } from "rxjs";
import { makeAccountBridgeReceive as commonMakeAccountBridgeReceive } from "@ledgerhq/coin-framework/bridge/jsHelpers";
import { withDevice } from "../hw/deviceAccess";
import getAddress from "../hw/getAddress";
export { makeSync, mergeNfts, mergeOps, sameOp, } from "@ledgerhq/coin-framework/bridge/jsHelpers";
export function getAddr(deviceId, opts) {
    return firstValueFrom(withDevice(deviceId)((transport) => from(getAddress(transport, opts))));
}
export function makeAccountBridgeReceive({ injectGetAddressParams, } = {}) {
    return commonMakeAccountBridgeReceive(getAddr, {
        injectGetAddressParams,
    });
}
//# sourceMappingURL=jsHelpers.js.map