import type { EdgeData } from '../spec'; import type { ElementDatum, Point, Vector2, Vector3 } from '../types'; /** * 判断是否为边数据 * * judge whether the data is edge data * @param data - 元素数据 | element data * @returns - 是否为边数据 | whether the data is edge data */ export declare function isEdgeData(data: Partial): data is EdgeData; /** * 判断是否为二维向量 * * Judge whether the vector is 2d * @param vector - 向量 | vector * @returns 是否为二维向量 | whether the vector is 2d */ export declare function isVector2(vector: Point): vector is Vector2; /** * 判断是否为三维向量 * * Judge whether the vector is 3d * @param vector - 向量 | vector * @returns 是否为三维向量 | whether the vector is 3d */ export declare function isVector3(vector: Point): vector is Vector3; /** * 判断是否为点 * * Judge whether the point is valid * @param p - 点 | point * @returns 是否为点 | whether the point is valid */ export declare function isPoint(p: any): p is Point;