import{isObject as e}from"../../utils/validateType.mjs";function a(a){if(e(a)){let e;return"at-rule"===a.type&&(e="at-rule",a.name&&(e=`@${a.name}`),a.parameter&&(e+=` "${a.parameter}"`),a.hasOwnProperty("hasBlock")&&(a.hasBlock?e+=" with a block":e=`blockless ${e}`)),"rule"===a.type&&(e="rule",a.name?e+=` "${a.name}"`:a.selector&&(e+=` with selector matching "${a.selector}"`)),e}return{"custom-properties":"custom property","dollar-variables":"$-variable","at-variables":"@-variable","less-mixins":"Less mixin",declarations:"declaration"}[a]}export{a as getDescription};