import * as React from 'react'; import type { FieldEntry } from '@splunk/visualizations-shared/dataSourceUtils'; import type { VizAppearance } from '@splunk/visualizations-shared/themeUtils'; import { GraphType, EdgeType, NodeType, OnNodeClickType } from '../PureLinkGraphUtils'; import type { OnNodeMouseoverPayload } from '../PureLinkGraph'; type GraphState = { nodes: Record; edges: []; highlightedNodes: string[]; hasMounted: boolean; hasRendered?: boolean; graphModelRef?: GraphType | null; }; type GraphProps = { graphDataModel: GraphType; onNodeClick: (arg0: OnNodeClickType) => void; onNodeMouseover?: (arg0: OnNodeMouseoverPayload) => void; onViewportUpdated?: () => void; suppressAnimation?: boolean; lockNodeHeight?: boolean; nodeColor: string; nodeTextColor?: string; nodeHighlightColor: string; nodeTextHighlightColor?: string; linkColor: string; linkWidth: number; showValueCounts: boolean; metadataFields?: FieldEntry[]; metadataColumns?: string[][]; nodeLabelOverflow?: string; appearance?: VizAppearance; }; declare class Graph extends React.Component { viewport: HTMLElement; requestAnimationFrameId: number; constructor(props: any); static getDerivedStateFromProps(props: GraphProps, state: GraphState): GraphState | { nodes: Record; edges: EdgeType[]; highlightedNodes: string[]; graphModelRef: GraphType; }; componentDidMount(): void; componentDidUpdate(prevProps: GraphProps, prevState: GraphState): void; componentWillUnmount(): void; handleNodeMouseover: (arg0: OnNodeMouseoverPayload) => void; handleMouseEnterNode(nodeID: string, isSelected?: boolean): void; handleMouseLeave(): void; handleMouseClick(key: string): void; unhighlightAllEdges(): void; clearSelectedEdges(): void; unhighlightAllNodes(): void; tween(): void; moveNodeBy(nodeId: string, xIn: number, yIn: number, wIn: number, hIn: number): void; layoutNodesWithoutAnimation(): void; render(): React.JSX.Element; } export default Graph; //# sourceMappingURL=Graph.d.ts.map