///
import { Props as XAxisProps } from './XAxis';
import { Props as YAxisProps } from './YAxis';
import { PresentationAttributes, D3Scale, DataKey } from '../util/types';
interface ErrorBarDataItem {
x: number;
y: number;
value: number;
errorVal?: number[] | number;
}
interface InternalErrorBarProps {
xAxis?: Omit & {
scale: D3Scale;
};
yAxis?: Omit & {
scale: D3Scale;
};
data?: any[];
layout?: 'horizontal' | 'vertical';
dataPointFormatter?: (entry: any, dataKey: DataKey) => ErrorBarDataItem;
offset?: number;
}
interface ErrorBarProps extends InternalErrorBarProps {
dataKey: DataKey;
width?: number;
direction?: 'x' | 'y';
}
export declare type Props = PresentationAttributes & ErrorBarProps;
declare function ErrorBar(props: Props): JSX.Element;
declare namespace ErrorBar {
var defaultProps: {
stroke: string;
strokeWidth: number;
width: number;
offset: number;
layout: string;
};
var displayName: string;
}
export default ErrorBar;