import { HistogramConfig, HistogramWidgetConfig } from './types'; import { DownloadItem } from '../actions'; import { ConfigProps } from '../loader/types'; export interface HistogramDownloadConfigProps extends ConfigProps { ticks: number[]; labelFormatter?: (value: string | number) => string | number; } export declare function histogramDataToCSV(data: number[][], ticks: number[], labelFormatter?: (value: string | number) => string | number): string[][]; export declare function histogramDownloadConfig({ refUI, ticks, labelFormatter, }: HistogramDownloadConfigProps): DownloadItem[]; /** * Generates ECharts configuration for distribution histogram widgets with * adjacent bars (minimal gap) and axis formatting styled with the CARTO theme. * * Accepts raw `number[][]` data and `ticks` boundaries. The ticks and * `labelFormatter` are used to create the x-axis category labels; the raw * numeric data is embedded directly in each series. * * @param props - Histogram configuration including raw data, ticks, and theme. * @returns Widget config with ECharts option object. */ export declare function histogramConfig(props: HistogramConfig): HistogramWidgetConfig;