import { spring as a } from "../generators/spring.es.js";
import { keyframes as s } from "../generators/keyframes.es.js";
import { decay as i } from "../generators/decay.es.js";
const r = { keyframes: s, spring: a, decay: i };
function p(t) {
  if (Array.isArray(t.to))
    return s;
  if (r[t.type])
    return r[t.type];
  const e = new Set(Object.keys(t));
  return e.has("ease") || e.has("duration") && !e.has("dampingRatio") ? s : e.has("dampingRatio") || e.has("stiffness") || e.has("mass") || e.has("damping") || e.has("restSpeed") || e.has("restDelta") ? a : s;
}
export {
  p as detectAnimationFromOptions
};
//# sourceMappingURL=detect-animation-from-options.es.js.map
