import{isString as t,isRegExp as e}from"./utils/validateTypes.mjs";import{DEFAULT_SEVERITY as i}from"./constants.mjs";import s from"./utils/validateOptions.mjs";function r(r,o){const a=r.stylelint;if(!a.config)return[];const c=a.config[o];let l,n;Array.isArray(c)?(l=c[0],n=c[1]||{}):(l=c||!1,n={});return s(r,o,{actual:l,possible:[!0,!1]},{actual:n,possible:{except:[t,e]}})&&(l||n.except)?[l,{except:n.except||[],severity:n.severity||a.config.defaultSeverity||i}]:[]}export{r as default};