1 | import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
2 |
|
3 |
|
4 |
|
5 | export declare type ColorSpace = 'rgb' | 'hsl' | 'hwb' | 'lch' | 'lab';
|
6 | export declare type CSSColorRGBComp = CSSNumberish | 'none';
|
7 | export declare type CSSColorPercent = CSSNumberish | 'none';
|
8 | export declare type CSSColorNumber = CSSNumberish | 'none';
|
9 | export declare type CSSColorAngle = CSSNumberish | 'none';
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare abstract class CSSColorValue extends CSSStyleValue {
|
16 | colorSpace: ColorSpace;
|
17 | constructor(colorSpace: ColorSpace);
|
18 | getType(): CSSStyleValueType;
|
19 | /**
|
20 | * @see https://drafts.css-houdini.org/css-typed-om-1/#dom-csscolorvalue-to
|
21 | */
|
22 | to(colorSpace: ColorSpace): CSSColorValue;
|
23 | }
|