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