import e from"../../utils/blockString.mjs";import{isNumber as s}from"../../utils/validateTypes.mjs";import t from"../../utils/isSingleLineString.mjs";import l from"../../utils/report.mjs";import r from"../../utils/ruleMessages.mjs";import i from"../../utils/validateOptions.mjs";const o="declaration-block-single-line-max-declarations",a=r(o,{expected:e=>`Expected no more than ${e} ${1===e?"declaration":"declarations"}`}),m=r=>(m,n)=>{i(n,o,{actual:r,possible:[s]})&&m.walkRules(s=>{const i=e(s);if(!t(i))return;if(!s.nodes)return;s.nodes.filter(e=>"decl"===e.type).length<=r||l({message:a.expected,messageArgs:[r],node:s,word:i,result:n,ruleName:o})})};m.ruleName=o,m.messages=a,m.meta={url:"https://stylelint.io/user-guide/rules/declaration-block-single-line-max-declarations"};export{m as default};