import { HistogramResponse } from '@carto/api-client';
import { ModelQueryFactory } from './utils/create-model';
import { HistogramWidgetProps, ModelComponentProps, ModelHookResponse, ModelProps } from './types';
export declare const getHistogram: ModelQueryFactory<HistogramWidgetProps, HistogramResponse>;
/**
 * `useHistogram` is a hook that creates frequency distributions of numerical data across value ranges.
 * `HistogramModel` is the render-props component equivalent.
 *
 * @example
 * ```tsx
 * <HistogramModel
 *   accessToken={token}
 *   sourceId="my_source"
 *   widgetProps={{ column: 'revenue', ticks: [0, 1000, 5000, 10000] }}
 * >
 *   {({ data }) => <HistogramChart data={data} />}
 * </HistogramModel>
 * ```
 */
declare function useHistogram<P extends ModelProps<HistogramWidgetProps, HistogramResponse>>(props: P): ModelHookResponse<P, HistogramResponse>;
declare function HistogramModel<P extends ModelProps<HistogramWidgetProps, HistogramResponse>>(props: ModelComponentProps<HistogramWidgetProps, HistogramResponse, P>): React.ReactElement;
export { useHistogram, HistogramModel };
