import type { Color, Edge, EdgeList, Node, NodeId, NodeList } from '@linkurious/ogma'; import { LkEdgeData, LkNodeData } from '@linkurious/rest-client'; export declare const FORCE_LAYOUT_CONFIG: { steps: number; alignSiblings: boolean; charge: number; theta: number; duration: number; gravity: number; gpu: boolean; }; export declare class OgmaTools { /** * Get the amount of hidden neighbors from a list of nodes * * @param nodes */ static getHiddenNeighbors(nodes: NodeList): number; /** * Return the visible degree of a node without self connection (self edge) * * @param {Node} node * @return {number} */ static getDegreeWithoutSelfConnection(node: Node): number; /** * Return true if the color tone is "bright" * * @param {string} color * @returns {boolean} */ static isBright(color: Color): boolean; static isNode(item: Node | Edge): item is Node; static isNodeList(items: NodeList | EdgeList): items is NodeList; /** * Transform a nodelist to an array of node ids sorted by position in a chain and the length of the chain * A chain is: (a)-(b)-(c)-(d) */ static topologicalSort(nodes: NodeList): { chain: NodeId[]; numberOfChain: number; }; static isStar(nodes: NodeList): false | Node; /** * Return true if the group is collapsed */ static isGroupCollapsed(node: Node): boolean; static setCollapsedGroupProperty(node: Node, collapsed: boolean): void; }