/// <reference path="../../index.d.ts" />
import type Color from "@arcgis/core/Color.js";
import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
import type { ArcgisRampColor } from "../arcgis-ramp-color/customElement.js";

export abstract class ArcgisRampColorBreak extends LitElement {
  /** @default "horizontal" */
  accessor layout: ArcgisRampColor["layout"];
  /** @default 1 */
  accessor max: number;
  /** @default 0 */
  accessor min: number;
  accessor stops: ColorBreak[];
}

export interface ColorBreak {
  color: Color | string;
  max: number;
  min: number;
}