import{isString as t,assertString as e}from"./validateTypes.mjs";import{isComment as n}from"./typeGuards.mjs";const i="-disable",r="-disable-line",s="-disable-next-line",o="-enable",l=new Set([i,r,s,o]),a="stylelint";function u(t,n=a){if(!t)return t;const[i]=t.split(/\s/,1);return e(i),i.replace(n,"")}function c(e,i=a){const r=t(e)?e:n(e)?e.text:void 0;if(!r)return!1;const s=u(r,i);return void 0!==s&&l.has(s)}function d(t,e=a){return`${e}${t}`}export{a as DEFAULT_CONFIGURATION_COMMENT,i as DISABLE_COMMAND,r as DISABLE_LINE_COMMAND,s as DISABLE_NEXT_LINE_COMMAND,o as ENABLE_COMMAND,u as extractConfigurationComment,d as getConfigurationComment,c as isConfigurationComment};