var _a;
import { AbstractMermaidTokenBuilder, __name, MermaidGeneratedSharedModule, PacketGeneratedModule, CommonValueConverter } from "./dist-chunks-mermaid-parser.core-chunk-4KMFLZZN.js";
import { EmptyFileSystem } from "../../langium/lib-workspace-file-system-provider.js";
import { inject } from "../../langium/lib-dependency-injection.js";
import { createDefaultSharedCoreModule, createDefaultCoreModule } from "../../langium/lib-default-module.js";
var PacketTokenBuilder = (_a = class extends AbstractMermaidTokenBuilder {
  constructor() {
    super(["packet"]);
  }
}, __name(_a, "PacketTokenBuilder"), _a);
var PacketModule = {
  parser: {
    TokenBuilder: /* @__PURE__ */ __name(() => new PacketTokenBuilder(), "TokenBuilder"),
    ValueConverter: /* @__PURE__ */ __name(() => new CommonValueConverter(), "ValueConverter")
  }
};
function createPacketServices(context = EmptyFileSystem) {
  const shared = inject(
    createDefaultSharedCoreModule(context),
    MermaidGeneratedSharedModule
  );
  const Packet = inject(
    createDefaultCoreModule({ shared }),
    PacketGeneratedModule,
    PacketModule
  );
  shared.ServiceRegistry.register(Packet);
  return { shared, Packet };
}
__name(createPacketServices, "createPacketServices");
export {
  PacketModule,
  createPacketServices
};
//# sourceMappingURL=dist-chunks-mermaid-parser.core-chunk-KMC2YHZD.js.map
