import type { Colord } from "./colord"; import type postcssValueParser from "postcss-value-parser"; import { AbsColor } from "./color-class"; import type { AlphaArgument, AlphaArgumentValid, FunctionArgument, NumberWithUnit, ValuesArgument, ValuesArgumentComplete } from "./parser"; export declare class ColorFromRgb extends AbsColor { private readonly rgb; constructor(rgb: RgbData | IncompleteRgbData); readonly type = "rgb"; getRgb(): { r: number | null; g: number | null; b: number | null; } | null; isComplete(): boolean; getAlpha(): number | null; removeAlpha(): ColorFromRgb; toColorString(): string; protected newColord(): Colord | null; private parseColor; } export type RgbValue = { r: NumberWithUnit; g: NumberWithUnit; b: NumberWithUnit; unit: U; }; export type RgbDataValid = { complete: true; rawName: string; rgb: ValuesArgumentComplete>; alpha: AlphaArgumentValid | null; extraArgs?: undefined; }; export type RgbData = RgbDataValid<""> | RgbDataValid<"%">; export type IncompleteRgbData = { complete: false; rawName: string; rgb: ValuesArgument>; alpha: AlphaArgument | null; extraArgs: FunctionArgument[]; }; export declare function parseRgb(input: string | postcssValueParser.Node): RgbData | IncompleteRgbData | null;