"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStorageSizeGiB = void 0;
const units_1 = require("./units");
const getStorageSizeGiB = (def, actual) => {
    if (!actual) {
        return def;
    }
    const base = (0, units_1.convertToBaseValue)(actual);
    if (!base) {
        return def;
    }
    return base / 1024 / 1024 / 1024;
};
exports.getStorageSizeGiB = getStorageSizeGiB;
//# sourceMappingURL=storage.js.map