import semverParse from 'semver/functions/parse' ; export const POLICY_ELASTIC_AGENT_ON_CLOUD = 'policy-elastic-agent-on-cloud' ; export const SUPPORTED_APM_PACKAGE_VERSION = '8.0.0-dev4' ; export function isPrereleaseVersion ( version ) { return semverParse ( version ) ?. prerelease ?. length ?? 0 > 0 ; }