import { BlockDataElement, Editor, IPlugin, PluginContext } from "../.."; import { SpannerDelegate, SpannerFactory } from "./spannerDelegate"; import { type Position } from "blocky-common/es"; export interface SpannerPluginOptions { factory: SpannerFactory; width?: number; mountPoint?: HTMLElement; } export declare class SpannerPlugin implements IPlugin { readonly options: SpannerPluginOptions; deletage: SpannerDelegate | undefined; name: string; constructor(options: SpannerPluginOptions); get container(): HTMLElement | undefined; onInitialized(context: PluginContext): void; protected placeSpannerAt(editor: Editor, blockContainer: HTMLElement, node: BlockDataElement): void; get width(): number; /** * Get the element's relative position to the container of the editor. */ protected getRelativeOffsetByDom(element: HTMLElement): Position; }