import { getProviderId } from "../../manager/index";
import { getEnv } from "@ledgerhq/live-env";
import { HttpManagerApiRepositoryFactory } from "../factories/HttpManagerApiRepositoryFactory";
import { getLatestFirmwareForDevice } from "@ledgerhq/device-core";
export function getLatestFirmwareForDeviceUseCase(deviceInfo, managerApiRepository = HttpManagerApiRepositoryFactory.getInstance()) {
    return getLatestFirmwareForDevice({
        deviceInfo,
        providerId: getProviderId(deviceInfo),
        userId: getEnv("USER_ID"),
        managerApiRepository,
    });
}
//# sourceMappingURL=getLatestFirmwareForDeviceUseCase.js.map