import { RangeResponse } from '@carto/api-client';
import { ModelQueryFactory } from './utils/create-model';
import { ModelComponentProps, ModelHookResponse, ModelProps, SpreadWidgetProps } from './types';
export declare const getSpread: ModelQueryFactory<SpreadWidgetProps, RangeResponse>;
/**
 * `useSpread` is a hook that calculates the spread (max - min) of a numerical column using the Range API internally.
 * `SpreadModel` is the render-props component equivalent.
 */
declare function useSpread<P extends ModelProps<SpreadWidgetProps, RangeResponse>>(props: P): ModelHookResponse<P, RangeResponse>;
declare function SpreadModel<P extends ModelProps<SpreadWidgetProps, RangeResponse>>(props: ModelComponentProps<SpreadWidgetProps, RangeResponse, P>): React.ReactElement;
export { useSpread, SpreadModel };
