import { hex } from "./dist-es-value-types-color-hex.js";
import { hsla } from "./dist-es-value-types-color-hsla.js";
import { rgba } from "./dist-es-value-types-color-rgba.js";
const color = {
  test: (v) => rgba.test(v) || hex.test(v) || hsla.test(v),
  parse: (v) => {
    if (rgba.test(v)) {
      return rgba.parse(v);
    } else if (hsla.test(v)) {
      return hsla.parse(v);
    } else {
      return hex.parse(v);
    }
  },
  transform: (v) => {
    return typeof v === "string" ? v : v.hasOwnProperty("red") ? rgba.transform(v) : hsla.transform(v);
  }
};
export {
  color
};
//# sourceMappingURL=dist-es-value-types-color-index.js.map
