import { ContainerWithCoord } from "blocky-common/es/dom"; import { type IDisposable } from "blocky-common/es"; import { Subject } from "rxjs"; import type { EditorController } from "./controller"; import { BlockDataElement, CursorState } from "../data"; /** * {@link FollowerWidget} is a widget can follow the cursor. * Usually, this widget is used to implement a * command panel. */ export declare class FollowerWidget extends ContainerWithCoord { #private; protected editingValue: string; protected focusedNode: BlockDataElement | undefined; protected disposables: IDisposable[]; startCursorState: CursorState | undefined; readonly dispose$: Subject; constructor(); /** * Can be override, specific the y offset * from the cursor to the FollowerWidget */ get yOffset(): number; get maxHeight(): number | undefined; get atTop(): boolean; set atTop(v: boolean); setEditingValue(value: string): void; widgetMounted(controller: EditorController): void; widgetAfterReposition?(): void; dispose(): void; }