import { Widget } from "@meursyphus/flitter"; import { Scale } from "../../common/CartesianChart/types"; import BarGroup, { BarGroupConfig } from "./components/BarGroup"; import type { CustomConfig, CustomWidget } from "../../common/type"; import type { BarProps } from "../BarChart/components/Bar"; import type { Custom as BarChartCustom, Dependencies as BarChartDependencies } from "../BarChart/types"; export type Custom = Omit & { barGroup: CustomBarGroup; }; type CustomBarGroup = CustomConfig | CustomWidget<{ Bar: (props: BarProps) => Widget; }, { scale: Scale; direction: "horizontal" | "vertical"; }>; export type Dependencies = Omit & { BarGroup: (...props: Parameters) => ReturnType; }; export {};