import { ChartType, UnifiedChartProps } from "./types.js";
import * as react_jsx_runtime283 from "react/jsx-runtime";

//#region src/react/charts/create-chart.d.ts

/**
 * Factory function to create chart components.
 * Eliminates boilerplate by generating components with the same pattern.
 *
 * @param chartType - The ECharts chart type
 * @param displayName - Component display name for React DevTools
 * @returns A typed chart component
 *
 * @example
 * ```tsx
 * export const BarChart = createChart<BarChartProps>("bar", "BarChart");
 * export const LineChart = createChart<LineChartProps>("line", "LineChart");
 * ```
 */
declare function createChart<TProps extends UnifiedChartProps>(chartType: ChartType, displayName: string): {
  (props: TProps): react_jsx_runtime283.JSX.Element;
  displayName: string;
};
//#endregion
export { createChart };
//# sourceMappingURL=create-chart.d.ts.map