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 ColorFromHwb extends AbsColor { private readonly hwb; constructor(hwb: HwbData | IncompleteHwbData); readonly type = "hwb"; isComplete(): boolean; getAlpha(): number | null; removeAlpha(): ColorFromHwb; toColorString(): string; protected newColord(): Colord | null; } export type HwbValue = { hue: NumberWithUnit<"" | "deg" | "rad" | "grad" | "turn">; whiteness: NumberWithUnit<"%">; blackness: NumberWithUnit<"%">; }; export type HwbData = { complete: true; rawName: string; hwb: ValuesArgumentComplete; alpha: AlphaArgumentValid | null; extraArgs?: undefined; }; export type IncompleteHwbData = { complete: false; rawName: string; hwb: ValuesArgument; alpha: AlphaArgument | null; extraArgs: FunctionArgument[]; }; export declare function parseHwb(input: string | postcssValueParser.Node): HwbData | IncompleteHwbData | null;