import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
var Validate = /*#__PURE__*/function () {
  function Validate() {
    _classCallCheck(this, Validate);
  }
  return _createClass(Validate, null, [{
    key: "expiryTimestamp",
    value: function expiryTimestamp(_expiryTimestamp) {
      var isValid = new Date(_expiryTimestamp).getTime() > 0;
      if (!isValid) {
        console.warn('react-timer-hook: { useTimer } Invalid expiryTimestamp settings', _expiryTimestamp); // eslint-disable-line
      }
      return isValid;
    }
  }, {
    key: "onExpire",
    value: function onExpire(_onExpire) {
      var isValid = _onExpire && typeof _onExpire === 'function';
      if (_onExpire && !isValid) {
        console.warn('react-timer-hook: { useTimer } Invalid onExpire settings function', _onExpire); // eslint-disable-line
      }
      return isValid;
    }
  }]);
}();
export { Validate as default };