import{isString as e,isObject as r,isBoolean as i}from"../../utils/validateType.mjs";function t(t){if(!Array.isArray(t))return!1;if(!t.every(i=>!!e(i)||r(i)&&void 0!==i.properties))return!1;const n=t.filter(r);return!!n.every(r=>!!Array.isArray(r.properties)&&r.properties.every(r=>e(r)))&&(!!n.every(e=>void 0===e.emptyLineBefore||["always","never","threshold"].includes(e.emptyLineBefore))&&!!n.every(e=>void 0===e.noEmptyLineBetween||i(e.noEmptyLineBetween)))}export{t as validatePrimaryOption};