/// export interface ToolProps { id: string; name: string; action?: () => unknown; } export interface InfoCfgProps { key: string; type?: string | 'text' | 'number' | 'datetime'; } export interface DsRecord { imgs?: string[]; [prop: string]: any; } export interface DataSource { objectType: string; source?: string; data: DsRecord[]; geometryType?: GeometryType; infoCfg?: InfoCfgProps[]; packageUuid?: string; headerTools?: ToolProps[]; renderHeaderTools?: (ds: DataSource | undefined) => React.ReactNode; footerTools?: ToolProps[]; renderFooterTools?: (ds: DataSource | undefined) => React.ReactNode; infoWindowSettings?: { decimalSetting?: number; }; dataSourceUniqueKey?: string; dataSourceRecordUniqueKey?: string; [otherkey: string]: unknown; } /** 数据的地理类型 */ export declare enum GeometryType { /** 点 */ point = "point", /** 线 */ line = "line", /** 面 */ polygon = "polygon", /** 文本 */ plain = "plain", /** 点到点 */ pointToPoint = "point_to_point", /** 点到线 */ pointToLine = "point_to_line", /** 点到面 */ pointToPolygon = "point_to_polygon", /** 线到点 */ lineToPoint = "line_to_point", /** 线到线 */ lineToLine = "line_to_line", /** 线到面 */ lineToPolygon = "line_to_polygon", /** 面到点 */ polygonToPoint = "polygon_to_point", /** 面到线 */ polygonToLine = "polygon_to_line", /** 面到面 */ polygonToPolygon = "polygon_to_polygon" }