import { CoreSetup , Plugin , PluginInitializerContext } from 'kibana/public' ; declare global { interface Window { env ? : PluginInitializerContext [ 'env' ] ; } } export class CorePluginDeprecationsPlugin implements Plugin < CorePluginDeprecationsPluginSetup , CorePluginDeprecationsPluginStart > { constructor ( pluginContext ) { window . env = pluginContext . env ; } public setup ( core ) { core . application . register ( { id : 'core-plugin-deprecations' , title : 'Core Plugin Deprecations' , async mount ( params ) { const { renderApp } = await import ( './application' ) ; await core . getStartServices ( ) ; return renderApp ( params ) ; } , } ) ; } public start ( ) { } public stop ( ) { } } export type CorePluginDeprecationsPluginSetup = ReturnType < CorePluginDeprecationsPlugin [ 'setup' ] > ; export type CorePluginDeprecationsPluginStart = ReturnType < CorePluginDeprecationsPlugin [ 'start' ] > ;