import type { ExternalCallbacks, Layout, LayoutOptions, Node, NvlOptions, Relationship } from '@neo4j-nvl/base'; import NVL from '@neo4j-nvl/base'; import { type HTMLProps } from 'react'; /** * The properties that can be passed to the {@link BasicNvlWrapper} component. */ export interface BasicReactWrapperProps { /** The nodes of the graph of type Node[] */ nodes: Node[]; /** The rels of the graph of type Relationship[] */ rels: Relationship[]; /** The layout, can be 'forceDirected' or 'hierarchical' */ layout?: Layout; /** Options for the current layout */ layoutOptions?: LayoutOptions; /** an Object containing functions for callbacks on certain actions */ nvlCallbacks?: ExternalCallbacks; /** An object containing options for the Nvl instance */ nvlOptions?: NvlOptions; /** Sets the positions of the nodes in the graph using the setNodePositions method. */ positions?: Node[]; /** * Sets the zoom level of the viewport using the setZoom method. * @remarks If both zoom and pan are provided, the setZoomAndPan method will be used. */ zoom?: number; /** * Sets the pan coordinates of the viewport using the setPan method. * @remarks If both zoom and pan are provided, the setZoomAndPan method will be used. */ pan?: { /** The x coordinate of the pan. */ x: number; /** The y coordinate of the pan. */ y: number; }; /** A callback to handle any errors that happen during NVL initialization */ onInitializationError?: (error: unknown) => void; } /** * * A basic React wrapper that wraps the NVL base library within a React component. * It takes the class' arguments as properties, which are passed to the NVL constructor. * Any changes in properties will be reflected in the NVL instance by calling the corresponding methods. * * For examples, head to the {@link https://neo4j.com/docs/nvl/current/react-wrappers/#_basic_react_wrapper Basic React wrapper documentation page}. */ export declare const BasicNvlWrapper: import("react").MemoExoticComponent, "ref"> & import("react").RefAttributes>>>>;