const defToStr = (defn) => {
    const raw = defToRaw(defn);
    return JSON.stringify(raw, null, 2);
};
const defToRaw = (defn) => ({
    uid: defn.uid,
    tag: defn.tag,
    classes: defn.classes,
    attributes: defn.attributes,
    styles: defn.styles,
    value: defn.value.getOr('<none>'),
    innerHtml: defn.innerHtml.getOr('<none>'),
    domChildren: defn.domChildren.length === 0 ? '0 children, but still specified' : String(defn.domChildren.length)
});
export { defToStr, defToRaw };
//# sourceMappingURL=DomDefinition.js.map