import { CodeEditor } from '../codeeditor'; /** * A namespace for `HoverBox` members. */ export declare namespace HoverBox { /** * Options for setting the geometry of a hovering node and its anchor node. */ interface IOptions { /** * The referent anchor for the hover box. */ anchor: HTMLElement; /** * The initial point along the anchor's scroll axis when scrolling began. */ anchorPoint: number; /** * The character width of the referent editor. */ charWidth: number; /** * The cursor coordinates of the referent editor. */ coords: CodeEditor.ICoordinate; /** * The cursor definition of the referent editor. */ cursor: { start: number; end: number; }; /** * The line height of the referent editor. */ lineHeight: number; /** * The maximum height of a hover box. * * #### Notes * This value is only used if a CSS max-height attribute is not set for the * hover box. It is a fallback value. */ maxHeight: number; /** * The minimum height of a hover box. */ minHeight: number; /** * The hover box node. */ node: HTMLElement; } /** * Set the visible dimensions of a hovering box anchored to a scrollable node. * * @param options - The hover box geometry calculation options. */ function setGeometry(options: IOptions): void; }