import React from 'react' ; import { DataView , DataViewsContract } from '../../../../../../../src/plugins/data_views/public' ; import { SavedSearchSavedObject } from '../../../../common/types/kibana' ; import { MlServicesContext } from '../../app' ; export interface MlContextValue { combinedQuery : any ; currentDataView : DataView ; currentSavedSearch : SavedSearchSavedObject | null ; dataViewsContract : DataViewsContract ; kibanaConfig : any ; kibanaVersion : string ; } export type SavedSearchQuery = object ; export const MlContext = React . createContext < Partial < MlContextValue & MlServicesContext > > ( { } ) ;