import { toHast as e } from "../../../../mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/index.js";
function f(r, t) {
  return r && "run" in r ? async function(n, u) {
    const a = (
      /** @type {HastRoot} */
      e(n, { file: u, ...t })
    );
    await r.run(a, u);
  } : function(n, u) {
    return (
      /** @type {HastRoot} */
      e(n, { file: u, ...r || t })
    );
  };
}
export {
  f as default
};
//# sourceMappingURL=index.js.map
