UNPKG

@lobehub/editor

Version:

A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.

10 lines (9 loc) 579 B
import { ComputePositionReturn, FloatingElement, Placement, ReferenceElement, offset } from '@floating-ui/dom'; export declare const updatePosition: ({ floating, placement, reference, offset: offsetNumber, callback, }: { callback?: ((props: ComputePositionReturn) => void) | undefined; floating: FloatingElement | null; offset?: number | undefined; placement?: Placement | undefined; reference: ReferenceElement | null; }) => Promise<false | undefined> | undefined; export declare const cleanPosition: (floating: FloatingElement | null) => false | undefined;