import { DeprecationsClient } from 'kibana/server' ; import { DomainDeprecationDetails } from 'src/core/server/types' ; export const getKibanaUpgradeStatus = async ( deprecationsClient ) => { const kibanaDeprecations = await deprecationsClient . getAllDeprecations ( ) ; const totalCriticalDeprecations = kibanaDeprecations . filter ( ( d ) => d . level === 'critical' ) . length ; return { totalCriticalDeprecations , } ; } ;