import { SavedObjectsClientContract , ChromeStart , OverlayStart , } from 'opensearch-dashboards/public' ; import { DataPublicPluginStart , IndexPatternsContract } from '../../../../plugins/data/public' ; import { SavedObjectLoader } from '../../../saved_objects/public' ; import { createSavedDashboardClass } from './saved_dashboard' ; interface Services { savedObjectsClient : SavedObjectsClientContract ; indexPatterns : IndexPatternsContract ; search : DataPublicPluginStart [ 'search' ] ; chrome : ChromeStart ; overlays : OverlayStart ; } param services export function createSavedDashboardLoader ( services ) { const SavedDashboard = createSavedDashboardClass ( services ) ; return new SavedObjectLoader ( SavedDashboard , services . savedObjectsClient ) ; }