import { CoreSetup , CoreStart , Plugin } from '../../../../core/public' ; import { ExpressionsServerStart , ExpressionsServerSetup } from '../../../expressions/server' ; import { tagcloudFunction } from '../common/expression_functions' ; interface SetupDeps { expressions : ExpressionsServerSetup ; } interface StartDeps { expression : ExpressionsServerStart ; } export type ExpressionTagcloudPluginSetup = void ; export type ExpressionTagcloudPluginStart = void ; export class ExpressionTagcloudPlugin implements Plugin < ExpressionTagcloudPluginSetup , ExpressionTagcloudPluginStart , SetupDeps , StartDeps > { public setup ( core , { expressions } ) { expressions . registerFunction ( tagcloudFunction ) ; } public start ( core ) { } public stop ( ) { } }