///
import { XAxisProps, YAxisProps } from 'recharts';
import { Props as AreaProps } from 'recharts/types/cartesian/Area';
import { Props as CartesianGridProps } from 'recharts/types/cartesian/CartesianGrid';
import { Payload } from 'recharts/types/component/DefaultLegendContent';
import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
import { Props as LegendProps } from 'recharts/types/component/Legend';
import { ContentType, TooltipProps } from 'recharts/types/component/Tooltip';
export declare namespace IStackedBarChart {
type Props = {
width?: string | number;
height?: string | number;
margin?: {
top?: number;
right?: number;
bottom?: number;
left?: number;
};
data?: any[];
bar1DataKey: string;
bar2DataKey: string;
bars?: StackedBar[];
areasYAxisRight?: StackedBar[];
xAxisDataKey?: string;
showTooltip?: boolean;
xAxisLabel?: string;
yAxisLabel?: string;
showRightYAxis?: boolean;
showLegends?: boolean;
customTooltip?: ContentType;
gradient?: React.ReactNode;
tooltipProps?: TooltipProps;
cartesianGridProps?: Omit;
legendProps?: Omit;
xAxisProps?: XAxisProps;
yAxisProps?: YAxisProps;
yAxisRightProps?: YAxisProps;
areaProps?: AreaProps;
areaYAxisRightProps?: AreaProps;
formattedXTick?: boolean;
customTooltipLabelFormatter?: (label: any) => string;
customYAxisTickFormatter?: (value: any) => string;
dateFormat?: string;
};
type StackedBar = {
dataKey: string;
name: string;
stroke?: string;
fill?: string;
fillOpacity?: number;
color?: string;
gradientId?: string;
[key: string]: any;
};
type CustomLegend = {
payload?: (Payload & {
payload: Payload['payload'] & {
fill: string;
};
})[];
};
}