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