"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLatestFirmwareForDeviceUseCase = void 0;
const index_1 = require("../../manager/index");
const live_env_1 = require("@ledgerhq/live-env");
const HttpManagerApiRepositoryFactory_1 = require("../factories/HttpManagerApiRepositoryFactory");
const device_core_1 = require("@ledgerhq/device-core");
function getLatestFirmwareForDeviceUseCase(deviceInfo, managerApiRepository = HttpManagerApiRepositoryFactory_1.HttpManagerApiRepositoryFactory.getInstance()) {
    return (0, device_core_1.getLatestFirmwareForDevice)({
        deviceInfo,
        providerId: (0, index_1.getProviderId)(deviceInfo),
        userId: (0, live_env_1.getEnv)("USER_ID"),
        managerApiRepository,
    });
}
exports.getLatestFirmwareForDeviceUseCase = getLatestFirmwareForDeviceUseCase;
//# sourceMappingURL=getLatestFirmwareForDeviceUseCase.js.map