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