const e = (t) => "type" in t && typeof t.type == "string" && t.type.length > 0, n = (t) => "children" in t && Array.isArray(t.children) && t.children.length === 1, i = (t) => typeof t == "object" && "text" in t && typeof t.text == "string" && t.text.length === 0, s = (t) => n(t) && i(t.children[0]), h = (t) => {
  if (!t)
    return !0;
  if (Array.isArray(t) && t.length < 2) {
    if (t.length === 0)
      return !0;
    const r = t[0];
    if (e(r) && s(r))
      return !0;
  }
  return !1;
};
export {
  h as isPlateValueEmpty
};
//# sourceMappingURL=isPlateValueEmpty.es.js.map
