import { ChartTooltipProps } from '@patternfly/react-charts/victory'; import React, { SyntheticEvent, FunctionComponent } from 'react'; export { ChartLabelFormatFunctionNames } from './labelFormat'; export { ChartAxisFormatFunctionNames } from './axisFormat'; export { ChartOnClickFunctionNames } from './onClick'; export { ChartTooltipComponentFunctionNames } from './tooltip'; export type ChartOnClickFunction = (event: SyntheticEvent, props: Record) => any; export type ChartAxisFormatFunction = (tick: string | number) => string; export type ChartLabelFormatFunction = (data: { datum: Record; }) => string; export type ChartTooltipComponentFunction = FunctionComponent; export type ChartStyleFunction = (props: any) => any; export type ChartDataComponentFunction = React.ElementType; export interface ChartFunctions { onClick?: Record; axisFormat?: Record; labelFormat?: Record; tooltipComponent?: Record; style?: Record; dataComponent?: Record; }