import type { QueryProps } from '../../shared/types';
import type { MetricData } from '../types';
export declare const useChartData: <T = MetricData[], TransformReturnType = T>(url: string, query: QueryProps, transform?: (data: T) => TransformReturnType) => {
    data: T | TransformReturnType | undefined;
    error: import("../../api").ApiErrorResponse | undefined;
    loading: boolean;
    isEmpty: boolean;
    refresh: () => Promise<any>;
};
