import * as postcss from 'postcss'; import { NodeProps } from '../node'; import { RawWithValue } from '../raw-with-value'; import * as sassInternal from '../sass-internal'; import { Expression } from '.'; /** * The initializer properties for {@link VariableExpression}. * * @category Expression */ export interface VariableExpressionProps extends NodeProps { namespace?: string; variableName: string; raws?: VariableExpressionRaws; } /** * Raws indicating how to precisely serialize a {@link VariableExpression}. * * @category Expression */ export interface VariableExpressionRaws { /** * The variable's namespace. * * This may be different than {@link VariableExpression.namespace} if the * namespace contains escape codes. */ namespace?: RawWithValue; /** * The variable's name. * * This may be different than {@link VariableExpression.varialbeName} if the * name contains escape codes or underscores. */ variableName?: RawWithValue; } /** * An expression representing a variable reference in Sass. * * @category Expression */ export declare class VariableExpression extends Expression { readonly sassType: "variable"; raws: VariableExpressionRaws; /** * This variable's namespace. * * This is the parsed and normalized value, with escapes resolved to the * characters they represent. */ get namespace(): string | undefined; set namespace(namespace: string | undefined); private _namespace; /** * This variable's name. * * This is the parsed and normalized value, with underscores converted to * hyphens and escapes resolved to the characters they represent. */ get variableName(): string; set variableName(variableName: string); private _variableName; constructor(defaults: VariableExpressionProps); /** @hidden */ constructor(_: undefined, inner: sassInternal.VariableExpression); clone(overrides?: Partial): this; toJSON(): object; /** @hidden */ toJSON(_: string, inputs: Map): object; /** @hidden */ toString(): string; /** @hidden */ get nonStatementChildren(): ReadonlyArray; }