import React from 'react'; import { AxisScale } from '@visx/axis'; import { DataContextType, SeriesProps } from '../types'; export declare type WithRegisteredDataProps = Pick, 'xScale' | 'yScale'>; /** * An HOC that handles registering the Series's data and renders the * `BaseSeriesComponent` * - only if x and y scales are available in context, and * - overrides `props.data/xAccessor/yAccessor` with the values from context. * This is useful for avoiding nasty syntax with undefined scales when using * hooks, and ensures that data + scales are always matched in the case of * prop changes, etc. */ export default function withRegisteredData, XScale extends AxisScale, YScale extends AxisScale, Datum extends object>(BaseSeriesComponent: React.ComponentType): >, YScale_1 extends import("@visx/scale").ValueOf>, Datum_1 extends object>(props: SeriesProps & Pick>) => JSX.Element | null; //# sourceMappingURL=withRegisteredData.d.ts.map