import type { BlockElement, InlineElement, NodePosition } from 'roosterjs-editor-types'; /** * @internal * Represents an empty InlineElement. * This is used for ContentTraverser internally only. * An empty InlineElement means current position is at the end of a tag so nothing is included inside this element */ export default class EmptyInlineElement implements InlineElement { private position; private parentBlock; constructor(position: NodePosition, parentBlock: BlockElement); /** * Get the text content of this inline element */ getTextContent(): string; /** * Get the container node of this inline element */ getContainerNode(): Node; /** * Get the parent block element of this inline element */ getParentBlock(): BlockElement; /** * Get the start position of this inline element */ getStartPosition(): NodePosition; /** * Get the end position of this inline element */ getEndPosition(): NodePosition; /** * Checks if the given inline element is after this inline element */ isAfter(inlineElement: InlineElement): boolean; /** * Checks if this inline element is a textual inline element */ isTextualInlineElement(): boolean; /** * Checks if the given editor position is contained in this inline element */ contains(position: NodePosition): boolean; /** * Apply inline style to a region of an inline element. */ applyStyle(styler: (element: HTMLElement) => any): void; }