import type { TPromsterOptions } from '@promster/types' ; import { isRunningInKubernetes } from './kubernetes' ; type TSkipMetricsInEnvironmentOptions = { detectKubernetes ? : TPromsterOptions [ 'detectKubernetes' ] ; } ; const skipMetricsInEnvironment = ( options ) => options . detectKubernetes === true && ! isRunningInKubernetes ( ) ; export { skipMetricsInEnvironment } ;