function isInternalFrontendFeatureLoader(opaque) {
  if (opaque.$$type === "@backstage/FrontendFeatureLoader") {
    toInternalFrontendFeatureLoader(opaque);
    return true;
  }
  return false;
}
function toInternalFrontendFeatureLoader(plugin) {
  const internal = plugin;
  if (internal.$$type !== "@backstage/FrontendFeatureLoader") {
    throw new Error(`Invalid plugin instance, bad type '${internal.$$type}'`);
  }
  if (internal.version !== "v1") {
    throw new Error(
      `Invalid plugin instance, bad version '${internal.version}'`
    );
  }
  return internal;
}

export { isInternalFrontendFeatureLoader, toInternalFrontendFeatureLoader };
//# sourceMappingURL=createFrontendFeatureLoader.esm.js.map
