import { TimeSeriesResponse } from '@carto/api-client';
import { ModelQueryFactory } from './utils/create-model';
import { ModelComponentProps, ModelHookResponse, ModelProps, TimeSeriesWidgetProps } from './types';
export declare const getTimeSeries: ModelQueryFactory<TimeSeriesWidgetProps, TimeSeriesResponse>;
/**
 * `useTimeSeries` is a hook that analyzes time-based data with configurable time intervals for temporal visualizations.
 * `TimeSeriesModel` is the render-props component equivalent.
 *
 * @example
 * ```tsx
 * <TimeSeriesModel
 *   accessToken={token}
 *   sourceId="my_source"
 *   widgetProps={{ column: 'created_at', stepSize: 'month', operation: 'count' }}
 * >
 *   {({ data }) => <TimeSeriesChart data={data} />}
 * </TimeSeriesModel>
 * ```
 */
declare function useTimeSeries<P extends ModelProps<TimeSeriesWidgetProps, TimeSeriesResponse>>(props: P): ModelHookResponse<P, TimeSeriesResponse>;
declare function TimeSeriesModel<P extends ModelProps<TimeSeriesWidgetProps, TimeSeriesResponse>>(props: ModelComponentProps<TimeSeriesWidgetProps, TimeSeriesResponse, P>): React.ReactElement;
export { useTimeSeries, TimeSeriesModel };
