import type { YooEditor } from '../types'; import type { GetElementRectOptions } from './types'; /** * Get the DOMRect of a Slate element * * @param editor - YooEditor instance * @param options - Get options * @returns DOMRect of the element or null if not found * * @example * ```typescript * // Get rect of element for positioning UI * const rect = editor.getElementRect({ * blockId: 'image-1', * element: imageElement * }); * * if (rect) { * console.log('Element position:', rect.x, rect.y); * console.log('Element size:', rect.width, rect.height); * } * ``` */ export declare function getElementRect(editor: YooEditor, options: GetElementRectOptions): { domRect: DOMRect; clientRects: DOMRectList; } | null; //# sourceMappingURL=getElementRect.d.ts.map