import React from 'react'; import { AxisScale } from '@visx/axis'; import { DataContextType } from '../types'; declare type AnyDataContext = DataContextType; /** Utilities for inferring context generics */ export declare type InferXScaleConfig = X extends DataContextType ? T : AxisScale; export declare type InferYScaleConfig = X extends DataContextType ? T : AxisScale; export declare type InferDatum = X extends DataContextType ? T : any; export declare type InferDataContext = DataContextType, InferYScaleConfig, InferDatum>; declare const DataContext: React.Context>>; export default DataContext; //# sourceMappingURL=DataContext.d.ts.map