import { isMapOrFeatureServerUrl } from "../urls/feature-service-urls";
export function canUseHubDownloadSystem(entity) {
    const isMapOrFeatureService = isMapOrFeatureServerUrl(entity.url);
    const isPublic = entity.access === "public";
    // TODO: use `extendedProps.serverQueryCapability` instead
    const isQueryEnabled = entity.serverQueryCapability;
    return isMapOrFeatureService && isPublic && isQueryEnabled;
}
//# sourceMappingURL=canUseHubDownloadSystem.js.map