import { Fun, Type } from '@ephox/katamari';
// Maybe we'll need to allow add/remove
const nu = (s) => ({
    classes: Type.isUndefined(s.classes) ? [] : s.classes,
    attributes: Type.isUndefined(s.attributes) ? {} : s.attributes,
    styles: Type.isUndefined(s.styles) ? {} : s.styles
});
const modToStr = (mod) => {
    const raw = modToRaw(mod);
    return JSON.stringify(raw, null, 2);
};
const modToRaw = Fun.identity;
const merge = (defnA, mod) => ({
    ...defnA,
    attributes: { ...defnA.attributes, ...mod.attributes },
    styles: { ...defnA.styles, ...mod.styles },
    classes: defnA.classes.concat(mod.classes)
});
export { nu, merge, 
// combine: combine,
modToStr, modToRaw };
//# sourceMappingURL=DomModification.js.map