import { ChartType } from "../charts/types.js"; import { GenieColumnMeta } from "./genie-query-transform.js"; //#region src/react/genie/genie-chart-inference.d.ts interface ChartInference { chartType: ChartType; xKey: string; yKey: string | string[]; } /** * Infer the best chart type for the given Genie query result. * Returns `null` when the data is not suitable for charting. */ declare function inferChartType(rows: Record[], columns: GenieColumnMeta[]): ChartInference | null; /** * Return the chart types that are compatible with the given data shape. * Used to populate the chart-type selector dropdown. */ declare function getCompatibleChartTypes(rows: Record[], columns: GenieColumnMeta[]): ChartType[]; //#endregion export { ChartInference, getCompatibleChartTypes, inferChartType }; //# sourceMappingURL=genie-chart-inference.d.ts.map