import CharacterData from '../character-data/CharacterData'; import IText from './IText'; /** * Text node. */ export default class Text extends CharacterData implements IText { readonly nodeType = NodeTypeEnum.textNode; /** * Node name. * * @returns Node name. */ get nodeName(): string; /** * Breaks the Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings. * * @see https://dom.spec.whatwg.org/#dom-text-splittext * @see https://dom.spec.whatwg.org/#dom-text-splittext * @param offset Offset. * @returns New text node. */ splitText(offset: number): IText; /** * Converts to string. * * @returns String. */ toString(): string; /** * Clones a node. * * @override * @param [deep=false] "true" to clone deep. * @returns Cloned node. */ cloneNode(deep?: boolean): IText; }