import { GlobalChartState , BackwardRef } from '../chart_state' ; type ChartRendererFn = ( containerRef : BackwardRef , forwardStageRef : React . RefObject < HTMLCanvasElement > ) => JSX . Element | null ; internal export const getInternalChartRendererSelector = ( state ) : ChartRendererFn => { if ( state . internalChartState ) { return state . internalChartState . chartRenderer ; } return ( ) => null ; } ;