import * as React from 'react'; import { ActiveShape, DataKey } from './types'; import { Props as RectangleProps } from '../shape/Rectangle'; import { BarProps } from '../cartesian/Bar'; export type BarRectangleProps = { option: ActiveShape | undefined; isActive: boolean; onMouseEnter?: (e: React.MouseEvent) => void; onMouseLeave?: (e: React.MouseEvent) => void; onClick?: (e: React.MouseEvent) => void; width?: number; height?: number; index: number; dataKey: DataKey; } & Omit; export declare function BarRectangle(props: BarRectangleProps): React.JSX.Element; export type MinPointSize = number | ((value: number | undefined | null, index: number) => number); /** * Safely gets minPointSize from the minPointSize prop if it is a function * @param minPointSize minPointSize as passed to the Bar component * @param defaultValue default minPointSize * @returns minPointSize */ export declare const minPointSizeCallback: (minPointSize: MinPointSize, defaultValue?: number) => (value: unknown, index: number) => number;