export const convertToTB = (value) => {
    const lower = value.toLowerCase().trim();
    const num = parseFloat(lower);
    const unit = lower.replace(/[0-9.]/g, '').trim();
    switch (unit) {
        case 'tb':
            return num;
        case 'gb':
            return num / 1024;
        case 'mb':
            return num / (1024 * 1024);
        case 'kb':
            return num / (1024 * 1024 * 1024);
        case 'b':
            return num / (1024 * 1024 * 1024 * 1024);
        default:
            return num;
    }
};
//# sourceMappingURL=convertToTB.js.map