function toInternalExternalRouteRef(resource) {
  const r = resource;
  if (r.$$type !== "@backstage/ExternalRouteRef") {
    throw new Error(`Invalid ExternalRouteRef, bad type '${r.$$type}'`);
  }
  return r;
}
function isExternalRouteRef(opaque) {
  return opaque.$$type === "@backstage/ExternalRouteRef";
}

export { isExternalRouteRef, toInternalExternalRouteRef };
//# sourceMappingURL=ExternalRouteRef.esm.js.map
