import * as postcss from 'postcss'; import * as sass from 'sass'; import { NodeProps } from '../node'; import { RawWithValue } from '../raw-with-value'; import type * as sassInternal from '../sass-internal'; import { Expression } from '.'; /** * The initializer properties for {@link ColorExpression}. * * @category Expression */ export interface ColorExpressionProps extends NodeProps { raws?: ColorExpressionRaws; /** * The color value for the expression. This must be in the RGB color space, * or {@link ColorExpression} will throw an error. */ value: sass.SassColor; } /** * Raws indicating how to precisely serialize a {@link ColorExpression}. * * @category Expression */ export interface ColorExpressionRaws { /** * The raw string representation of the color. * * Colors can be represented as named keywords or as hex codes, with or * without capitalizations and with a varying number of digits. */ value?: RawWithValue; } /** * An expression representing a color literal in Sass. * * @category Expression */ export declare class ColorExpression extends Expression { readonly sassType: "color"; raws: ColorExpressionRaws; /** * The color represented by this expression. This will always be a color in * the RGB color space. * * Throws an error if this is set to a non-RGB color. */ get value(): sass.SassColor; set value(value: sass.SassColor); private _value; constructor(defaults: ColorExpressionProps); /** @hidden */ constructor(_: undefined, inner: sassInternal.ColorExpression); clone(overrides?: Partial): this; toJSON(): object; /** @hidden */ toJSON(_: string, inputs: Map): object; /** @hidden */ toString(): string; /** @hidden */ get nonStatementChildren(): ReadonlyArray; }