import * as n from "monaco-editor";
import { getJsonAstNodeAtPath as e } from "./json-ast.js";
const u = async (o, t) => {
  const r = await (await (await n.languages.json.getWorker())(o.uri)).parseJSONDocument(o.uri.toString());
  return r?.root ? e(r.root, t) ?? null : null;
};
export {
  u as getJsonAstNodeFromPath
};
