import type { ChartConfig } from "../../../utils/types/index.js";
import type { ModelTypes } from "../../interfaces/common.js";

/** Payload for model config change event. */
export type ModelConfigChangePayload<T extends ModelTypes = ModelTypes> = {
  /** Name of the setter (either prop or method) which triggered the change. */
  setterName: string;
  /** New chart config. */
  config: ChartConfig<T>;
};