/** * The value behind an expression that was written out. * * Several rules only apply to a value the source states rather than computes: a * length has to be a whole number when it is written as one, a `style` has to * be one of a closed set when it is written as a string, and a warmup is exact * only when every length on the path was a number in the file. Each of those * asks the same two questions, and asking them in one place is what keeps the * answers the same. * * A written negative is a unary minus over a literal rather than a literal, so * it is read through here as well. Without that, `step = -1` would look like * something computed and a loop that counts downwards would lose the one check * that says it terminates. */ import type { Expression } from '../ast/index.js'; export declare function literalNumber(expression: Expression | undefined): number | undefined; export declare function literalString(expression: Expression | undefined): string | undefined; //# sourceMappingURL=literals.d.ts.map