"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const toLatestFormat = require("./toLatestFormat.cjs");
const strictlyDeserializeNodes = (editor, serializedElement, errorMessage) => {
  let deserialized;
  try {
    deserialized = JSON.parse(serializedElement);
  } catch (e) {
    throw new Error(errorMessage || `Editor: deserialization error`);
  }
  return toLatestFormat.toLatestFormat(editor, deserialized).children;
};
exports.strictlyDeserializeNodes = strictlyDeserializeNodes;
//# sourceMappingURL=strictlyDeserializeNodes.cjs.map
