import type { HEX } from "../typings/HEX"; import type { Named } from "../typings/Named"; import type { Type as NumberTypeString } from "../typings/NumberType"; import type { RGB } from "../typings/RGB"; import type { HSL } from "../typings/HSL"; import type { HSV } from "../typings/HSV"; import { WithLogger, LoggerBuilder, UpdateOptionFn } from "@kcutils/logger"; import { RGBHexOptions } from "../utils/converter/rgb"; export declare class Color extends WithLogger { private static counter; private static increaseCounter; protected id: number; private rgb?; private error?; private raw; constructor(rgb: RGB, loggerBuilder?: LoggerBuilder<"">); setLoggerOption(fn: UpdateOptionFn<"", "">): this; setAlpha(a: number): this; setRGB(rgb: Partial): this; getId(): number; getAlpha(): number; /** * http://www.w3.org/TR/AERT#color-contrast */ getBrightness(format?: NumberTypeString): number; /** * http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef */ getLuminance(): number; isDark(): boolean; isLight(): boolean; isValid(): boolean; hasAlpha(): boolean; throw(): this; toRGB(type?: NumberTypeString): RGB; toRGBString(): string; toHSL(): HSL; toHSLString(): string; toHSV(): HSV; toHSVString(): string; toHex(opts?: RGBHexOptions): HEX; toHexString(opts?: RGBHexOptions): string; toNamed(): Named | undefined; toNamedString(): string; clone(): Color; copyRGB(rgb: Partial): Color; copyHSL(hsl: Partial): Color; copyHSV(hsv: Partial): Color; toString(): string; mix(c: Color, amount?: number): Color; } //# sourceMappingURL=Color.d.ts.map