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 ColorFromLab extends AbsColor { private readonly lab; constructor(lab: LabData | IncompleteLabData); readonly type = "lab"; isComplete(): boolean; getAlpha(): number | null; removeAlpha(): ColorFromLab; toColorString(): string; protected newColord(): Colord | null; } export type LabValue = { lightness: NumberWithUnit<"%">; a: NumberWithUnit<"">; b: NumberWithUnit<"">; }; export type LabData = { complete: true; rawName: string; lab: ValuesArgumentComplete; alpha: AlphaArgumentValid | null; extraArgs?: undefined; }; export type IncompleteLabData = { complete: false; rawName: string; lab: ValuesArgument; alpha: AlphaArgument | null; extraArgs: FunctionArgument[]; }; export declare function parseLab(input: string | postcssValueParser.Node): LabData | IncompleteLabData | null;