import type * as Template from './serial-types'; /** * Encoders for Bluepic Serial `Value`s. Every Serial property is an expression * string ({ type:'expression', value }). These match the conventions seen in * real serials: numbers as bare strings ("50"), strings/colors/enums in * backticks ("`#B92808FF`"), arrays as "[0, 0]", and object literals (image * value, rich-text runs) as JS-literal source with backtick strings. */ export type V = Template.Value; /** Wrap a raw expression source string. */ export declare function exprRaw(value: string): V; export declare function num(n: number): V; export declare function bool(b: boolean): V; export declare function str(s: string): V; export declare function numArray(arr: number[]): V; /** * Encode an arbitrary JS value as expression source (recursive). Used for the * image value object and rich-text run arrays. Strings become backtick * literals so they survive the expression evaluator. */ export declare function literal(value: unknown): string; /** Encode an object/array literal as a Value. */ export declare function obj(value: unknown): V; //# sourceMappingURL=expr.d.ts.map