import { DataSourceConfig } from '../types';
export interface ApiResponse<T = any> {
    code: number;
    data: T;
    message?: string;
}
export declare function fetchChartData(dataSource: DataSourceConfig): Promise<any>;
declare class DataRefreshManager {
    private timers;
    setAutoRefresh(componentId: string, dataSource: DataSourceConfig, callback: (data: any) => void): void;
    clearAutoRefresh(componentId: string): void;
    clearAll(): void;
}
export declare const dataRefreshManager: DataRefreshManager;
export declare const API_RESPONSE_EXAMPLES: {
    chartData: {
        code: number;
        data: {
            xAxisData: string[];
            seriesData: {
                name: string;
                data: number[];
            }[];
        };
        message: string;
    };
    pieData: {
        code: number;
        data: {
            name: string;
            value: number;
        }[];
        message: string;
    };
    mapData: {
        code: number;
        data: {
            name: string;
            value: number;
        }[];
        message: string;
    };
    nestedData: {
        code: number;
        data: {
            result: {
                chartInfo: {
                    xAxisData: string[];
                    seriesData: {
                        name: string;
                        data: number[];
                    }[];
                };
            };
        };
        message: string;
    };
};
export {};
