"use client";
import { BACKEND_RECORD_CURRENT_INJECTION_SPOT_ID } from "./spotIds.js";
const LEGACY_GLOBAL_MUTATION_INJECTION_SPOT_ID = "backend-mutation:global";
const GLOBAL_MUTATION_INJECTION_SPOT_ID = BACKEND_RECORD_CURRENT_INJECTION_SPOT_ID;
const BACKEND_MUTATION_ERROR_EVENT = "om:backend-mutation-error";
function dispatchBackendMutationError(detail) {
  if (typeof window === "undefined") return;
  window.dispatchEvent(
    new CustomEvent(BACKEND_MUTATION_ERROR_EVENT, {
      detail
    })
  );
}
export {
  BACKEND_MUTATION_ERROR_EVENT,
  GLOBAL_MUTATION_INJECTION_SPOT_ID,
  LEGACY_GLOBAL_MUTATION_INJECTION_SPOT_ID,
  dispatchBackendMutationError
};
//# sourceMappingURL=mutationEvents.js.map
