import { CoreSetup , CoreStart , Plugin } from '../../../../core/public' ; import { ExpressionsServerStart , ExpressionsServerSetup } from '../../../expressions/server' ; import { heatmapFunction , heatmapLegendConfig , heatmapGridConfig } from '../common' ; interface SetupDeps { expressions : ExpressionsServerSetup ; } interface StartDeps { expression : ExpressionsServerStart ; } export type ExpressionHeatmapPluginSetup = void ; export type ExpressionHeatmapPluginStart = void ; export class ExpressionHeatmapPlugin implements Plugin < ExpressionHeatmapPluginSetup , ExpressionHeatmapPluginStart , SetupDeps , StartDeps > { public setup ( core , { expressions } ) { expressions . registerFunction ( heatmapFunction ) ; expressions . registerFunction ( heatmapLegendConfig ) ; expressions . registerFunction ( heatmapGridConfig ) ; } public start ( core ) { } public stop ( ) { } }