import{assert as e}from"../../utils/validateTypes.mjs";import{atRuleRegexes as t}from"../../utils/regexes.mjs";import r from"../../utils/getImportantPosition.mjs";import s from"../../utils/report.mjs";import m from"../../utils/ruleMessages.mjs";import o from"../../utils/validateOptions.mjs";const a="keyframe-declaration-no-important",i=m(a,{rejected:"Unexpected !important"}),l=m=>(l,n)=>{o(n,a,{actual:m})&&l.walkAtRules(t.keyframesName,t=>{t.walkDecls(t=>{if(!t.important)return;const m=r(t.toString());e(m),s({message:i.rejected,messageArgs:[],node:t,index:m.index,endIndex:m.endIndex,result:n,ruleName:a})})})};l.ruleName=a,l.messages=i,l.meta={url:"https://stylelint.io/user-guide/rules/keyframe-declaration-no-important"};export{l as default};