import { GraphinData } from "@antv/graphin"; import { Schema, SchemaItem } from "../ExpressionGroup"; export declare const cropGraphByNodes: (graphData: any, targetNodes: any) => { nodes: any; edges: any; }; export declare const formatProperties: (data: { id: string; label: string; properties?: Record; }) => Record; /** * 根据点边数据基于 Schema 生成统计信息 * @param schema 原始 Schema * @param nodesOrEdges 点边数据 * @param clearEnum 是否需要清除属性的枚举值 */ export declare const generateStaticsForSchema: (schema: Schema, nodesOrEdges: any, clearEnum?: boolean) => any; export declare const filterByTopRule: (data: { id: string; label: string; properties: Record; }, rule: SchemaItem) => boolean; export interface NodeStyle { nodeType: string; size: number; elementType: "node"; color: string; fontStyle: { family: string; position: string; size: number; }; icon: { iconText: string; [key: string]: any; }; displayLabel: string | undefined; advancedColor: string; advancedSize: number; labelVisible: boolean; advancedIds: string[]; typeAliasVisible: boolean; property: Array<{ name: string; operator: string; value: string; }>; customColor?: string; advancedCustomColor?: string; badgeValue?: string[]; } export interface StyleTemplate { [key: string]: Partial; } export interface EdgeStyle { advancedColor: string; advancedLineWidth: number; color: string; displayLabel: string | undefined; edgeStrokeType: string; edgeType: string; elementType: "edge"; fontStyle: { family: string; size: number; }; lineWidth: number; advancedIds: string[]; labelVisible: boolean; typeAliasVisible: boolean; property: Array<{ name: string; operator: string; value: string; }>; customColor?: string; advancedCustomColor?: string; } export declare const getTransformByTemplate: (styles: any, schemaData: any) => (data: GraphinData) => GraphinData;