1 2 3 4 5 6 7 8 9 10 11 12 13
type ColorFormat = "hex" | "rgb" | "hsl" | "hsv"; interface Color { clone(): this; toString(format?: ColorFormat): string; toJSON(): string; value(): number; value(v: number): this; hex(): string; } declare function color(value: any): Color; export = color;