import type { EngineName } from "../index.js";

export type TextDirection = "ltr" | "rtl";

export type CalibrationFamily =
  | "rendered"
  | "geometry"
  | "interaction"
  | "relations"
  | "sweeps"
  | "a11y"
  | "assets";

export type CalibrationRuleId =
  | "UI-010"
  | "UI-011"
  | "UI-013"
  | "UI-014"
  | "UI-015"
  | "UI-016"
  | "UI-018"
  | "UI-021"
  | "UI-033"
  | "UI-035"
  | "UI-036"
  | "UI-037"
  | "UI-038"
  | "UI-034"
  | "UI-052"
  | "UI-060"
  | "UI-061"
  | "UI-062"
  | "UI-070";

export type CalibrationEntry = {
  family: CalibrationFamily;
  ruleId: CalibrationRuleId;
  detectorId: string;
  detectorVersion: string;
};

export const CALIBRATION_ENGINES: readonly EngineName[] = [
  "chromium",
  "firefox",
  "webkit",
] as const;

export const CALIBRATION_DIRECTIONS: readonly TextDirection[] = ["ltr", "rtl"] as const;
