import type { NodeState, EdgeState } from "../core/constants.js"; import * as arrow from 'apache-arrow'; /** Graph data types supported by this library */ export type GraphData = PlainGraphData | ArrowGraphData; /** Graph data stored in Apache Arrow binary columnar tables */ export type ArrowGraphData = { shape: 'arrow-graph-data'; version: number; metadata?: Record; nodes: arrow.Table; edges: arrow.Table; }; export type PlainGraphData = { shape: 'plain-graph-data'; version?: number; metadata?: Record; nodes?: GraphNodeData[] | null; edges?: GraphEdgeData[] | null; }; export type GraphNodeData = { id: string | number; label?: string; state?: NodeState; selectable?: boolean; highlightConnectedEdges?: boolean; weight?: number; attributes?: Record | null | undefined; }; export type GraphEdgeData = { id: string | number; sourceId: string | number; targetId: string | number; label?: string; state?: EdgeState; directed?: boolean; weight?: number; attributes?: Record | null | undefined; }; export declare function isArrowGraphData(value: unknown): value is ArrowGraphData; export declare function isPlainGraphData(value: unknown): value is PlainGraphData; //# sourceMappingURL=graph-data.d.ts.map