import React, { ReactElement } from 'react'; import { Props as RectangleProps } from '../shape/Rectangle'; import { ViewBox, D3Scale } from '../util/types'; import { Props as XAxisProps } from './XAxis'; import { Props as YAxisProps } from './YAxis'; interface InternalReferenceAreaProps { viewBox?: ViewBox; xAxis?: Omit & { scale: D3Scale; }; yAxis?: Omit & { scale: D3Scale; }; clipPathId?: number | string; } interface ReferenceAreaProps extends InternalReferenceAreaProps { isFront?: boolean; alwaysShow?: boolean; ifOverflow?: 'hidden' | 'visible' | 'discard' | 'extendDomain'; x1?: number | string; x2?: number | string; y1?: number | string; y2?: number | string; className?: number | string; yAxisId?: number | string; xAxisId?: number | string; shape?: ReactElement | ((props: any) => SVGElement); } declare type Props = RectangleProps & ReferenceAreaProps; declare function ReferenceArea(props: Props): JSX.Element; declare namespace ReferenceArea { var displayName: string; var defaultProps: { isFront: boolean; ifOverflow: string; xAxisId: number; yAxisId: number; r: number; fill: string; fillOpacity: number; stroke: string; strokeWidth: number; }; var renderRect: (option: React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)> | ((props: any) => SVGElement), props: any) => SVGElement | JSX.Element; } export default ReferenceArea;