import * as postcss from 'postcss'; 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 NumberExpression}. * * @category Expression */ export interface NumberExpressionProps extends NodeProps { value: number; unit?: string; raws?: NumberExpressionRaws; } /** * Raws indicating how to precisely serialize a {@link NumberExpression}. * * @category Expression */ export interface NumberExpressionRaws { /** * The raw string representation of the number. * * Numbers can be represented with or without leading and trailing zeroes, and * use scientific notation. For example, the following number representations * have the same value: `1e3`, `1000`, `01000.0`. */ value?: RawWithValue; } /** * An expression representing a number literal in Sass. * * @category Expression */ export declare class NumberExpression extends Expression { readonly sassType: "number"; raws: NumberExpressionRaws; /** The numeric value of this expression. */ get value(): number; set value(value: number); private _value; /** The denominator units of this number. */ get unit(): string | null; set unit(unit: string | null); private _unit; /** Whether the number is unitless. */ isUnitless(): boolean; constructor(defaults: NumberExpressionProps); /** @hidden */ constructor(_: undefined, inner: sassInternal.NumberExpression); clone(overrides?: Partial): this; toJSON(): object; /** @hidden */ toJSON(_: string, inputs: Map): object; /** @hidden */ toString(): string; /** @hidden */ get nonStatementChildren(): ReadonlyArray; }