import { IChartType, IChartUnit } from '@/routes/ReportHost/custom-report/components/Chart/utils'; import Api from './Api'; export interface ICreateData { searchJson?: string; name: string; description?: string; chartType: IChartType; statisticsType: IChartUnit; analysisField: string; analysisFieldPredefined: boolean; comparedField?: string; comparedFieldPredefined?: boolean; objectVersionNumber?: number; } declare class CustomReportApi extends Api { get prefix(): string; checkName(name: string): any; getData(data: any): any; getCustomReports(): any; createChart(data: ICreateData): any; updateChart(chartId: string, data: ICreateData): any; getChartAllDataById(chartId: string): any; deleteChart(chartId: string): any; } declare const customReportApi: CustomReportApi; export { customReportApi };