import { PluginInitializerContext } from 'kibana/public' ; import { npSetup , npStart } from 'ui/new_platform' ; import { visualizations } from 'plugins/visualizations' ; import { MetricVisPluginSetupDependencies } from './plugin' ; import { LegacyDependenciesPlugin } from './shim' ; import { plugin } from '.' ; const plugins = { visualizations , data : npSetup . plugins . data , __LEGACY : new LegacyDependenciesPlugin ( ) } ; const pluginInstance = plugin ( { } as PluginInitializerContext ) ; export const setup = pluginInstance . setup ( npSetup . core , plugins ) ; export const start = pluginInstance . start ( npStart . core ) ;