import { EntityType, LkEdgeData, LkNodeData, LkProperty } from '@linkurious/rest-client'; import type { Edge, Node } from '@linkurious/ogma'; import { OgmaState } from './reactive'; export type SelectionState = 'selection' | 'multiSelection' | 'noSelection'; /** * Return the current size of the selection */ export declare const getSelectionSize: (state: OgmaState) => number; /** * Return the current state of the selection */ export declare const getSelectionState: (state: OgmaState) => SelectionState; /** * Get the entityType of the current selection */ export declare const getSelectionEntity: (state: OgmaState) => EntityType | undefined; /** * Return the item selection if there's only one item selected */ export declare const getUniqSelection: (state: OgmaState) => Node | Edge | undefined; /** * Return the types of the current selection (if only one item is selected) */ export declare const getUniqSelectionTypes: (state: OgmaState) => Array | undefined; /** * Return the entityType of the current selection if there's only one item selected */ export declare const getUniqSelectionEntity: (state: OgmaState) => "node" | "edge" | undefined; /** * Return the properties of the current selection if there's only one item selected */ export declare const getSelectionProperties: (state: OgmaState) => Array<{ key: string; value: LkProperty; }>; /** * Return true if the current selection has properties */ export declare const hasSelectionProperties: (state: OgmaState) => boolean;