'use strict' ; export enum Units { None = 1 , K = 1024 , M = 1024 * 1024 , G = 1024 * 1024 * 1024 } export enum DiskSpaceFormat { PercentUsed , PercentRemaining , Remaining , UsedOutOfTotal } export interface DiskSpaceFormatLookup { [ unit ] : DiskSpaceFormat ; } export interface UnitLookup { [ unit ] : number ; } export var DiskSpaceFormatMappings = { "PercentUsed" : DiskSpaceFormat . PercentUsed , "PercentRemaining" : DiskSpaceFormat . PercentRemaining , "Remaining" : DiskSpaceFormat . Remaining , "UsedOutOfTotal" : DiskSpaceFormat . UsedOutOfTotal , } ; export var FreqMappings = { "GHz" : Units . G , "MHz" : Units . M , "KHz" : Units . K , "Hz" : Units . None , } ; export var MemMappings = { "GB" : Units . G , "MB" : Units . M , "KB" : Units . K , "B" : Units . None , } ;