import { CoreSetup } from 'src/core/server' ; import { ReportingCore } from '../core' ; import { getDeprecationsInfo as getIlmPolicyDeprecationsInfo } from './migrate_existing_indices_ilm_policy' ; import { getDeprecationsInfo as getReportingRoleDeprecationsInfo } from './reporting_role' ; export const registerDeprecations = ( { core , reportingCore , } ) => { core . deprecations . registerDeprecations ( { getDeprecations : async ( ctx ) => { return [ ... ( await getIlmPolicyDeprecationsInfo ( ctx , { reportingCore } ) ) , ... ( await getReportingRoleDeprecationsInfo ( ctx , { reportingCore } ) ) , ] ; } , } ) ; } ;