import { RangeResponse } from '@carto/api-client';
import { ModelQueryFactory } from './utils/create-model';
import { ModelComponentProps, ModelHookResponse, ModelProps, RangeWidgetProps } from './types';
export declare const getRange: ModelQueryFactory<RangeWidgetProps, RangeResponse>;
/**
 * `useRange` is a hook that retrieves the minimum and maximum values for a numerical column, enabling range-based filtering.
 * `RangeModel` is the render-props component equivalent.
 *
 * @example
 * ```tsx
 * <RangeModel
 *   accessToken={token}
 *   sourceId="my_source"
 *   widgetProps={{ column: 'price' }}
 * >
 *   {({ data }) => <RangeSlider min={data?.min} max={data?.max} />}
 * </RangeModel>
 * ```
 */
declare function useRange<P extends ModelProps<RangeWidgetProps, RangeResponse>>(props: P): ModelHookResponse<P, RangeResponse>;
declare function RangeModel<P extends ModelProps<RangeWidgetProps, RangeResponse>>(props: ModelComponentProps<RangeWidgetProps, RangeResponse, P>): React.ReactElement;
export { useRange, RangeModel };
