import React from 'react'; import { AnnotationProps } from '@visx/annotation/lib/components/Annotation'; import { EditableAnnotationProps } from '@visx/annotation/lib/components/EditableAnnotation'; import { ScaleInput } from '@visx/scale'; import { AxisScale } from '@visx/axis'; export declare type BaseAnnotationProps = Pick & { /** Annotation component to render. */ AnnotationComponent: React.FC | React.FC; /** Key for series to which datum belongs (used for x/yAccessors). Alternatively xAccessor + yAccessor may be specified. */ dataKey?: string; /** Datum to annotate, used for Annotation positioning. */ datum: Datum; /** If dataKey is not specified, you must specify an xAccessor for datum. */ xAccessor?: (d: Datum) => ScaleInput; /** If dataKey is not specified, you must specify an yAccessor for datum. */ yAccessor?: (d: Datum) => ScaleInput; }; export default function BaseAnnotation({ AnnotationComponent, children, datum, dataKey, xAccessor: propsXAccessor, yAccessor: propsYAccessor, dx: propsDx, dy: propsDy, ...annotationProps }: BaseAnnotationProps): JSX.Element | null; //# sourceMappingURL=BaseAnnotation.d.ts.map