import{SEVERITY_WARNING as r,SEVERITY_ERROR as e}from"../constants.mjs";function n(n,t){switch(n){case e:t.error+=1;break;case r:t.warning+=1;break;default:throw new Error(`Unknown severity: "${n}"`)}}export{n as default};