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

export { isSubRouteRef, toInternalSubRouteRef };
//# sourceMappingURL=SubRouteRef.esm.js.map
