export type ChartDataValue = Record; export interface DataKeyWithLabel { dataKey: DataKeyFn; dataKeyLabel: DataKeyProp; } export type DataKeyFn = (data: TData) => TValue; export type DataKeyProp = keyof TData; export type DataKey = DataKeyProp | DataKeyFn; export type DataKeyValue> = TDataKey extends (data: TData) => infer R ? R : TDataKey extends keyof TData ? TData[TDataKey] : never; export declare const isDataKeyWithLabel: (obj: unknown) => obj is DataKeyWithLabel; /** * The orientation of the chart's axes and graphical items. `"horizontal"` puts * the category axis on the x-axis (bars grow upwards), `"vertical"` puts it on * the y-axis (bars grow to the side). */ export type CartesianChartLayout = "horizontal" | "vertical";