/**
 * @packageDocumentation
 * @module index
 */
/**
 * RGBA color type
 */
export interface RGBA {
    r: number;
    g: number;
    b: number;
    a: number;
}
export default class Color {
    /**
     * constructor
     * @param input
     */
    constructor(input: Color | RGBA | string | number[]);
    /**
     * `true` if this is a valid color
     * @returns {boolean}
     */
    get valid(): boolean;
    /**
     * @returns {RGBA} - the color
     */
    get rgb(): RGBA;
    /**
     * @param obj - the color
     */
    set rgb(obj: RGBA);
    /**
     * rgb(a) string
     * @return {string|undefined}
     */
    rgbString(): string | undefined;
    /**
     * hex string
     * @return {string|undefined}
     */
    hexString(): string | undefined;
    /**
     * hsl(a) string
     * @return {string|undefined}
     */
    hslString(): string | undefined;
    /**
     * oklch string
     * @return {string|undefined}
     */
    oklchString(): string | undefined;
    /**
     * Mix another color to this color.
     * @param color - Color to mix in
     * @param weight - 0..1
     * @returns {Color}
     */
    mix(color: Color, weight?: number): Color;
    /**
     * Interpolate a color value between this and `color`
     * @param color
     * @param t - 0..1
     * @returns {Color}
     */
    interpolate(color: Color, t: number): Color;
    /**
     * Clone
     * @returns {Color}
     */
    clone(): Color;
    /**
     * Set alpha
     * @param a - the alpha [0..1]
     * @returns {Color}
     */
    alpha(a: number): Color;
    /**
     * Make clearer
     * @param ratio - ratio [0..1]
     * @returns {Color}
     */
    clearer(ratio: number): Color;
    /**
     * Convert to grayscale
     * @returns {Color}
     */
    greyscale(): Color;
    /**
     * Opaquer
     * @param ratio - ratio [0..1]
     * @returns {Color}
     */
    opaquer(ratio: number): Color;
    /**
     * Negates the rgb value
     * @returns {Color}
     */
    negate(): Color;
    /**
     * Lighten
     * @param ratio - ratio [0..1]
     * @returns {Color}
     */
    lighten(ratio: number): Color;
    /**
     * Darken
     * @param ratio - ratio [0..1]
     * @returns {Color}
     */
    darken(ratio: number): Color;
    /**
     * Saturate
     * @param ratio - ratio [0..1]
     * @returns {Color}
     */
    saturate(ratio: number): Color;
    /**
     * Desaturate
     * @param ratio - ratio [0..1]
     * @returns {Color}
     */
    desaturate(ratio: number): Color;
    /**
     * Rotate
     * @param deg - degrees to rotate
     * @returns {Color}
     */
    rotate(deg: number): Color;
}
