import { PersistentState } from "./lib/savedstate"; import { Datapoint, ParamType, HiPlotValueDef } from "./types"; export interface ParamDef extends HiPlotValueDef { name: string; optional: boolean; numeric: boolean; distinct_values: Array; special_values: Array; type_options: Array; __val2color?: { [k: string]: any; }; __colorscale?: any; } export declare function is_special_numeric(x: any): boolean; export declare function create_d3_scale_without_outliers(pd: ParamDef): any; export declare function create_d3_scale(pd: ParamDef): any; export interface ScaleDomainRange { type: ParamType; brush_extents_normalized: [number, number]; values?: Array; range?: [number, number]; include_infnans?: boolean; } export declare function scale_pixels_range(scale: any, extents: [number, number]): ScaleDomainRange; export declare function colorScheme(pd: ParamDef, value: any, alpha: number, defaultColorMap: string): string; export interface ParamDefMap { [key: string]: ParamDef; } /** * Ideally we want to infer: * - If a variable is categorical * - If a variable is numeric * - If a variable is log-scaled */ export declare function infertypes(url_states: PersistentState, table: Array, hints: { [key: string]: HiPlotValueDef; }): ParamDefMap;