"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const serializeNodes = (editor, elements, errorMessage) => {
  try {
    const serialized = {
      formatVersion: editor.formatVersion,
      children: elements
    };
    return JSON.stringify(serialized);
  } catch (e) {
    throw new Error(errorMessage || `Editor: serialization error`);
  }
};
exports.serializeNodes = serializeNodes;
//# sourceMappingURL=serializeNodes.cjs.map
