import type { FieldData, FilterItem, ChartType } from '@/types'; export type DataItemType1 = { groupName: string; value: number | null; 值: number | null; [propName: string]: any; }; export type DataItemType2 = { label: string | number; value: number; }; export interface DataType3Item1 { yGroup?: string; yValue?: number | null; [propName: string]: any; } export interface DataType3Item2 { zGroup?: string; zValue?: number | null; [propName: string]: any; } export type DataType3 = [DataType3Item1[], DataType3Item2[]]; export type DataType4 = Record; export type DataItemType5 = Record; export interface DataNoDataType { noData?: boolean; } interface ChartParams { ifFlow?: boolean; appId: string; busiObjectCodeList: string[]; busiObjectIdList: string[]; catalogItemIdList?: string[]; datasourceId: string; dataDimensionList: FieldData[]; dataIndicatorsList: FieldData[]; chartType: ChartType; limit?: number; isEditor: boolean; filterList?: FilterItem[]; optionFilterList?: any[]; pageSize?: number; pageNum?: number; isPagination?: boolean; getEngineApis: any; [key: string]: any; } interface PageInfo { current: number; total: number; pageSize?: number; } interface UseChartData { chartData: T & DataNoDataType; loading: boolean; pageInfo: PageInfo; distinctDimensionList: FieldData[]; distinctIndicatorsList: FieldData[]; dataMapSource?: any; } declare function useChartData(props: ChartParams): UseChartData; export default useChartData;