import type { RegisterDeprecationsConfig } from '../../deprecations' ; import type { ISavedObjectTypeRegistry } from '../saved_objects_type_registry' ; import type { SavedObjectConfig } from '../saved_objects_config' ; import { getUnknownTypesDeprecations } from './unknown_object_types' ; interface GetDeprecationProviderOptions { typeRegistry : ISavedObjectTypeRegistry ; savedObjectsConfig : SavedObjectConfig ; kibanaIndex : string ; kibanaVersion : string ; } export const getSavedObjectsDeprecationsProvider = ( config ) : RegisterDeprecationsConfig => { return { getDeprecations : async ( context ) => { return [ ... ( await getUnknownTypesDeprecations ( { ... config , esClient : context . esClient , } ) ) , ] ; } , } ; } ;