/** * Reading a chart's encoding props: the authored `x`/`y`/`value` objects, the * `{ field }` series form, and which encoding carries the plotted magnitude. */ import type { FormatSpec } from '../../data/format-value.js'; import type { IrNode } from '../../ir.js'; import type { AxisSpec } from '../../render/chart-types.js'; /** An encoding prop as authored (after schema validation). */ export interface EncodingProp { field?: string; label?: string; format?: string; unit?: string; currency?: string; decimals?: number; min?: number; max?: number; } export declare function encodingProp(node: IrNode, key: string): EncodingProp | undefined; /** The series field when `series` is the `{ field }` form. */ export declare function seriesField(node: IrNode): string | undefined; /** The encoding that carries the plotted magnitude, with its prop key. */ export declare function magnitudeEncoding(node: IrNode): { key: string; prop?: EncodingProp; }; export declare function formatSpec(prop: EncodingProp | undefined): FormatSpec; export declare function axisSpec(prop: EncodingProp | undefined, fallbackLabel?: string): AxisSpec; //# sourceMappingURL=chart-encodings.d.ts.map