const filterOutExternalNodes = (nodes) => nodes.filter((n) => n.type !== "EXTERNAL").map((n) => {
  const newNode = { ...n };
  if ("nodes" in newNode && newNode.nodes) {
    newNode.nodes = filterOutExternalNodes(newNode.nodes);
  }
  return newNode;
});
export {
  filterOutExternalNodes
};
//# sourceMappingURL=filter-out-external-nodes.js.map
