import { satisfies, coerce } from "semver";
const usbUpdateSupportedVersions = {
    nanoS: ">=1.6.1",
    nanoX: ">=1.3.0",
    nanoSP: ">=1.0.0",
    stax: ">=1.0.0",
    europa: ">=0.0.0",
    apex: ">=0.0.0",
};
const bleUpdateSupportedVersions = {
    nanoX: ">=2.4.0",
    stax: ">=0.0.0",
    europa: ">=0.0.0",
    apex: ">=0.0.0",
};
export function isUsbUpdateSupported(deviceInfo, modelId) {
    return (Boolean(usbUpdateSupportedVersions[modelId]) &&
        satisfies(coerce(deviceInfo.version), usbUpdateSupportedVersions[modelId]));
}
export function isBleUpdateSupported(deviceInfo, modelId) {
    return (Boolean(bleUpdateSupportedVersions[modelId]) &&
        satisfies(coerce(deviceInfo.version), bleUpdateSupportedVersions[modelId]));
}
//# sourceMappingURL=isFirmwareUpdateVersionSupported.js.map