import { type CategoricalColor } from './palette';
/**
 * Represents a color with red, green, blue, and alpha channels.
 * Provides methods to convert to HEX and RGBA formats.
 *
 * @param {number} r - Red channel (0-255).
 * @param {number} g - Green channel (0-255).
 * @param {number} b - Blue channel (0-255).
 * @param {number} [a=1] - Alpha channel (0-1).
 */
export declare function Color(r: number, g: number, b: number, a?: number): {
    readonly r: number;
    readonly g: number;
    readonly b: number;
    readonly a: number;
    readonly hex: string;
    readonly rgba: string;
    toString(): string;
    toJSON(): string;
};
export declare namespace Color {
    var fromHex: (hex: string) => Color;
    var fromString: (str: string) => {
        readonly r: number;
        readonly g: number;
        readonly b: number;
        readonly a: number;
        readonly hex: string;
        readonly rgba: string;
        toString(): string;
        toJSON(): string;
    };
    var categorical: (name: CategoricalColor) => {
        readonly r: number;
        readonly g: number;
        readonly b: number;
        readonly a: number;
        readonly hex: string;
        readonly rgba: string;
        toString(): string;
        toJSON(): string;
    };
}
export type Color = ReturnType<typeof Color>;
