import { Plugin , CoreSetup , AppMountParameters } from 'kibana/public' ; import { i18n } from '@kbn/i18n' ; import { PluginSetup as SecuritySolutionPluginSetup } from '../../../../../plugins/security_solution/public' ; export type ResolverTestPluginSetup = void ; export type ResolverTestPluginStart = void ; export interface ResolverTestPluginSetupDependencies { securitySolution : SecuritySolutionPluginSetup ; } export interface ResolverTestPluginStartDependencies { } export class ResolverTestPlugin implements Plugin < ResolverTestPluginSetup , ResolverTestPluginStart , ResolverTestPluginSetupDependencies , ResolverTestPluginStartDependencies > { public setup ( core , setupDependencies ) { core . application . register ( { id : 'resolverTest' , title : i18n . translate ( 'xpack.resolverTest.pluginTitle' , { defaultMessage : 'Resolver Test' , } ) , mount : async ( params ) => { const startServices = await core . getStartServices ( ) ; const [ coreStart ] = startServices ; const [ { renderApp } , resolverPluginSetup ] = await Promise . all ( [ import ( './applications/resolver_test' ) , setupDependencies . securitySolution . resolver ( ) , ] ) ; return renderApp ( coreStart , params , resolverPluginSetup ) ; } , } ) ; } public start ( ) { } }