export declare const SCALE_TYPES: readonly ["sequential", "diverging", "threshold", "sqrt", "log", "pow"]; export type ScaleType = (typeof SCALE_TYPES)[number]; export declare function isScaleType(name: string): name is ScaleType; /** A resolved, callable D3 scale — `(value) => output`. */ export type CompiledScale = (value: number) => unknown; export declare function buildScale(type: ScaleType, range: unknown[], domain: number[]): CompiledScale; /** * `colorRamp(value, domain, colors)` — the doc names this as a registered * built-in alongside scale()/clamp()/lerp() without giving a worked example; * implemented as sugar for a two-stop-or-more sequential color scale, the * natural reading of "ramp a value across a set of colors". */ export declare function buildColorRamp(domain: [number, number], colors: string[]): CompiledScale;