/**
 * PineColor implements the Pine Script `color` namespace.
 *
 * Supports:
 * - color(na)                          → type-cast (via any())
 * - color.new(color, alpha)            → apply transparency
 * - color.rgb(r, g, b, a?)            → create from components
 * - color.from_gradient(...)           → interpolate between two colors
 * - color.r/g/b/t(color)              → extract individual components
 * - color.red, color.blue, ...        → named constants
 */
export declare class PineColor {
    private context;
    constructor(context: any);
    any(value: any): any;
    param(source: any, index?: number): any;
    new(color: any, a?: number): any;
    rgb(r: number, g: number, b: number, a?: number): string;
    from_gradient(value: any, bottom_value: any, top_value: any, bottom_color: any, top_color: any): any;
    /** Extract red component (0-255) from a color string. Returns na if unparsable. */
    r(color: any): number;
    /** Extract green component (0-255) from a color string. Returns na if unparsable. */
    g(color: any): number;
    /** Extract blue component (0-255) from a color string. Returns na if unparsable. */
    b(color: any): number;
    /** Extract transparency (0-100, Pine scale) from a color string. Returns na if unparsable. */
    t(color: any): number;
    aqua(): "#00BCD4";
    black(): "#363A45";
    blue(): "#2196F3";
    fuchsia(): "#E040FB";
    gray(): "#787B86";
    green(): "#4CAF50";
    lime(): "#00E676";
    maroon(): "#880E4F";
    navy(): "#311B92";
    olive(): "#808000";
    orange(): "#FF9800";
    purple(): "#9C27B0";
    red(): "#F23645";
    silver(): "#B2B5BE";
    teal(): "#089981";
    white(): "#FFFFFF";
    yellow(): "#FDD835";
}
