import type { ComboData, EdgeData, GraphData, NodeData } from '../spec';
import type { ElementDatum } from '../types';
/**
* 合并两个 节点/边/Combo 的数据
*
* Merge the data of two nodes/edges/combos
* @param original - 原始数据 | original data
* @param modified - 待合并的数据 | data to be merged
* @returns 合并后的数据 | merged data
* @remarks
* 只会合并第一层的数据,data、style 下的二级数据会被覆盖
*
* Only the first level of data will be merged, the second level of data under data and style will be overwritten
*/
export declare function mergeElementsData(original: T, modified: Partial): T;
/**
* 克隆元素数据
*
* Clone clement data
* @param data - 待克隆的数据 | data to be cloned
* @returns 克隆后的数据 | cloned data
* @remarks
* 只会克隆到第二层(data、style)
*
* Only clone to the second level (data, style)
*/
export declare function cloneElementData(data: T): T;
/**
* 判断数据是否为空
*
* Determine if the data is empty
* @param data - 图数据 | graph data
* @returns 是否为空 | is empty
*/
export declare function isEmptyData(data: GraphData): boolean;
/**
* 判断两个元素数据是否相等
*
* Determine if two element data are equal
* @param original - 原始数据 | original data
* @param modified - 修改后的数据 | modified data
* @returns 是否相等 | is equal
* @remarks
* 相比于 isEqual,这个方法不会比较更下层的数据
*
* Compared to isEqual, this method does not compare data at a lower level
*/
export declare function isElementDataEqual(original?: Partial, modified?: Partial): boolean;