import { Canvas } from '../../interfaces/canvas'; import { DiagramElement, DiagramElementSet } from '../model/diagram-element'; /** * Stores the functionality regarding the user highlight of a diagram canvas. * @public * @see DiagramCanvas */ export declare class DiagramUserHighlight extends DiagramElementSet { #private; /** * Constructs a user highlight object. * @public * @param canvas A canvas. */ constructor(canvas: Canvas, highlightSections?: boolean); /** * Gets the focus of the user highlight, which is the element where the current user highlight started regardless of which other elements were highlighted as a consequence. * @public * @returns A diagram element. */ getFocus(): DiagramElement | undefined; /** * Unhighlights all highlighted elements and highlights the given element as the main element of the user highlight. * @param element */ focusOn(element: DiagramElement): void; add(element: DiagramElement): void; clear(): void; }