import React from 'react'; import { LayoutType, CategoricalChartOptions, Margin, ChartOffset, BaseAxisProps, ChartCoordinate, TickItem } from '../util/types'; export interface CategoricalChartState { chartX?: number; chartY?: number; dataStartIndex?: number; dataEndIndex?: number; activeTooltipIndex?: number; isTooltipActive?: boolean; updateId?: number; xAxisMap?: { [k: string]: BaseAxisProps; }; yAxisMap?: { [k: string]: BaseAxisProps; }; orderedTooltipTicks?: any; tooltipAxis?: BaseAxisProps; tooltipTicks?: TickItem[]; graphicalItems?: any; activeCoordinate?: ChartCoordinate; offset?: ChartOffset; angleAxisMap?: any; radiusAxisMap?: any; formatedGraphicalItems?: any; activePayload?: any[]; tooltipAxisBandSize?: number; activeItem?: any; activeLabel?: string; xValue?: number; yValue?: number; } export interface CategoricalChartProps { syncId?: number | string; compact?: boolean; width?: number; height?: number; data?: any[]; layout?: LayoutType; stackOffset?: 'sign' | 'expand' | 'none' | 'wiggle' | 'silhouette'; throttleDelay?: number; margin?: Margin; barCategoryGap?: number | string; barGap?: number | string; barSize?: number | string; maxBarSize?: number; style?: any; className?: string; children?: any; defaultShowTooltip?: boolean; onClick?: any; onMouseLeave?: any; onMouseEnter?: any; onMouseMove?: any; onMouseDown?: any; onMouseUp?: any; reverseStackOrder?: boolean; id?: string; startAngle?: number; endAngle?: number; cx?: number | string; cy?: number | string; innerRadius?: number | string; outerRadius?: number | string; } declare const generateCategoricalChart: ({ chartName, GraphicalChild, eventType, axisComponents, legendContent, formatAxisMap, defaultProps, }: CategoricalChartOptions) => { new (props: CategoricalChartProps): { uniqueChartId: any; clipPathId: any; legendInstance: any; container?: any; componentDidMount(): void; UNSAFE_componentWillReceiveProps(nextProps: CategoricalChartProps): void; componentWillUnmount(): void; cancelThrottledTriggerAfterMouseMove(): void; getAxisMap(props: CategoricalChartProps, { axisType, AxisComp, graphicalItems, stackGroups, dataStartIndex, dataEndIndex }: any): {}; getAxisMapByAxes: (props: CategoricalChartProps, { axes, graphicalItems, axisType, axisIdKey, stackGroups, dataStartIndex, dataEndIndex }: any) => any; getAxisMapByItems: (props: CategoricalChartProps, { graphicalItems, Axis, axisType, axisIdKey, stackGroups, dataStartIndex, dataEndIndex }: any) => any; getActiveCoordinate(tooltipTicks: TickItem[], activeIndex: any, rangeObj: any): ChartCoordinate; getMouseInfo(event: any): { xValue: any; yValue: any; chartX: number; chartY: number; } | { activeTooltipIndex: number; activeLabel: any; activePayload: any[]; activeCoordinate: ChartCoordinate; chartX: number; chartY: number; }; getTooltipContent(activeIndex: number, activeLabel?: string): any[]; getFormatItems(props: CategoricalChartProps, currentState: any): any[]; getCursorRectangle(): any; getCursorPoints(): any; calculateTooltipPos(rangeObj: any): any; inRange(x: number, y: number): any; parseEventsOfWrapper(): any; updateStateOfAxisMapsOffsetAndStackGroups({ props, dataStartIndex, dataEndIndex, updateId }: any): any; addListener(): void; removeListener(): void; calculateOffset({ props, graphicalItems, xAxisMap, yAxisMap }: any): any; handleLegendBBoxUpdate: (box: any) => void; handleReceiveSyncEvent: (cId: any, chartId: any, data: any) => void; handleBrushChange: ({ startIndex, endIndex }: any) => void; handleMouseEnter: (e: any) => void; triggeredAfterMouseMove: (e: any) => any; handleItemMouseEnter: (el: any) => void; handleItemMouseLeave: () => void; handleMouseMove: (e: any) => void; handleMouseLeave: (e: any) => void; handleOuterEvent: (e: any) => void; handleClick: (e: any) => void; handleMouseDown: (e: any) => void; handleMouseUp: (e: any) => void; handleTouchMove: (e: any) => void; handleTouchStart: (e: any) => void; handleTouchEnd: (e: any) => void; triggerSyncEvent(data: any): void; verticalCoordinatesGenerator: ({ xAxis, width, height, offset }: ChartCoordinate) => number[]; horizontalCoordinatesGenerator: ({ yAxis, width, height, offset }: ChartCoordinate) => number[]; axesTicksGenerator: (axis?: any) => TickItem[]; tooltipTicksGenerator: (axisMap: any) => { tooltipTicks: TickItem[]; orderedTooltipTicks: TickItem[]; tooltipAxis: BaseAxisProps; tooltipAxisBandSize: any; }; filterFormatItem(item: any, displayName: any, childIndex: any): any; renderCursor: (element: any) => React.DetailedReactHTMLElement | React.CElement>; renderPolarAxis: (element: any, displayName: string, index: number) => React.DetailedReactHTMLElement; renderXAxis: (element: any, displayName: string, index: number) => React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; renderYAxis: (element: any, displayName: string, index: number) => React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; renderAxis(axisOptions: BaseAxisProps, element: any, displayName: string, index: number): React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; renderGrid: (element: React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>) => React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; renderPolarGrid: (element: React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>) => React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; renderLegend: () => React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; renderTooltip: () => React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; renderBrush: (element: React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>) => React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; renderReferenceElement: (element: React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>, displayName: string, index: number) => React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; renderActivePoints: ({ item, activePoint, basePoint, childIndex, isRange }: any) => React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>[]; renderGraphicChild: (element: React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>, displayName: string, index: number) => any[]; renderCustomized: (element: React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>) => React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; renderClipPath(): JSX.Element; render(): JSX.Element; context: any; setState(state: CategoricalChartState | ((prevState: Readonly, props: Readonly) => CategoricalChartState | Pick) | Pick, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; }; displayName: string; defaultProps: CategoricalChartProps; createDefaultState: (props: CategoricalChartProps) => CategoricalChartState; hasBar: (graphicalItems: any[]) => boolean | any[]; getDisplayedData: (props: CategoricalChartProps, { graphicalItems, dataStartIndex, dataEndIndex }: any, item?: any) => any[]; getAxisNameByLayout(layout: LayoutType): { numericAxisName: string; cateAxisName: string; }; renderActiveDot(option: any, props: any): React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)>; contextType?: React.Context; }; export default generateCategoricalChart;