import type { ContentModelEntity, InsertEntityPosition, InsertEntityOptions, IEditor, DOMInsertPoint } from 'roosterjs-content-model-types'; /** * Insert an entity into editor * @param editor The editor object * @param type Type of entity * @param isBlock True to insert a block entity, false to insert an inline entity * @param position Position of the entity to insert. It can be * Value of InsertEntityPosition: see InsertEntityPosition * selectionRangeEx: Use this range instead of current focus position to insert. After insert, focus will be moved to * the beginning of this range (when focusAfterEntity is not set to true) or after the new entity (when focusAfterEntity is set to true) * @param options Move options to insert. See InsertEntityOptions */ export declare function insertEntity(editor: IEditor, type: string, isBlock: boolean, position: 'focus' | 'begin' | 'end' | DOMInsertPoint, options?: InsertEntityOptions): ContentModelEntity | null; /** * Insert a block entity into editor * @param editor The editor object * @param type Type of entity * @param isBlock Must be true for a block entity * @param position Position of the entity to insert. It can be * Value of InsertEntityPosition: see InsertEntityPosition * selectionRangeEx: Use this range instead of current focus position to insert. After insert, focus will be moved to * the beginning of this range (when focusAfterEntity is not set to true) or after the new entity (when focusAfterEntity is set to true) * @param options Move options to insert. See InsertEntityOptions */ export declare function insertEntity(editor: IEditor, type: string, isBlock: true, position: InsertEntityPosition | DOMInsertPoint, options?: InsertEntityOptions): ContentModelEntity | null;