import { createEditor } from "slate";
function createEditorWithPlugins(plugins) {
  return plugins.reduceRight(
    (editor, plugin) => plugin?.withPlugin?.(editor) ?? editor,
    createEditor()
  );
}
function pathToString(path) {
  return path.join(":");
}
function stringToPath(s) {
  return s.split(":").map((a) => parseInt(a));
}
export {
  createEditorWithPlugins,
  pathToString,
  stringToPath
};
//# sourceMappingURL=translations-core.js.map