import _extends from "@babel/runtime/helpers/esm/extends";
import useTimer from './useTimer';
import useStopwatch from './useStopwatch';
import useTime from './useTime';
export { useTimer, useStopwatch, useTime };
export default function useTimerDeprecated(settings) {
  if (settings.expiryTimestamp) {
    var _values = useTimer(settings); // eslint-disable-line
    return _extends({}, _values, {
      startTimer: _values.start,
      stopTimer: _values.pause,
      resetTimer: function resetTimer() {}
    });
  }
  var values = useStopwatch(settings); // eslint-disable-line
  return _extends({}, values, {
    startTimer: values.start,
    stopTimer: values.pause,
    resetTimer: values.reset
  });
}