import { ISearchVO } from '@/common/types'; import { ChartProps } from './index'; import { IChartType, IChartUnit } from './utils'; import { CustomReportSearchProps } from '../ChartSearch/ChartSearch'; export interface ChartConfig { projectId?: undefined; chartType?: IChartType; statisticsType?: IChartUnit; analysisField?: string; comparedField?: string; analysisFieldPredefined?: boolean; comparedFieldPredefined?: boolean; searchVO?: ISearchVO; chartSearchVO?: ISearchVO; } declare function useReport(config: ChartConfig, maxShow?: number, onFinish?: Function): [CustomReportSearchProps, ChartProps]; export default useReport;