import { type } from "@kcutils/helper"; import { RGB, OptionalRGB, RawRGB } from "../../typings/RGB"; import { OptionalHSL, RawHSL } from "../../typings/HSL"; import { OptionalHSV, RawHSV } from "../../typings/HSV"; import { OptionalHEX, RawHEX } from "../../typings/HEX"; import { OptionalNamed, RawNamed } from "../../typings/Named"; import { C } from "../../typings/C"; export declare type Input = OptionalRGB | OptionalHSL | OptionalHSV | OptionalHEX | OptionalNamed; export declare type RawInput = RawRGB | RawHSL | RawHSV | RawHEX | RawNamed; /** * Permissive string parsing. Take in a number of formats, and output an object * based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` * * @param color string color */ export declare const stringToInput: (color: string) => Input | undefined; export declare const inputToRGB: (input: Input) => RGB | undefined; declare type Rule = { type: "string" | "number" | "boolean"; range?: { min: number; max: number; }; }; declare type Condition = Record; export declare const validateRGB: (rgb: type.Optional, withAlpha?: boolean) => boolean; export declare const validateColorObject: (obj: type.Optional>, condition: Condition) => boolean; export {}; //# sourceMappingURL=color.d.ts.map