export default Unit; /** * * */ type Unit = string; declare namespace Unit { /** * Returns a Unit enum value from a JavaScript object name. * @param {Object} obj The plain JavaScript object containing the name of the enum value. * @return {Unit} The enum Unit value. */ function constructFromObject(obj: any): string; /** * Validates Unit enum value. * @param {Object} obj The plain JavaScript object containing the name of the enum value. * @return {null} Throws error for invalid value. */ function validate(obj: any): null; }