import { MNEMONIC } from './constants';
import { ExtNode } from '../../json-crdt/extensions/ExtNode';
import { ExtensionId } from '../constants';
export class PeritextNode extends ExtNode {
    text() {
        return this.data.get(0);
    }
    slices() {
        return this.data.get(1);
    }
    // ------------------------------------------------------------------ ExtNode
    extId = ExtensionId.peritext;
    name() {
        return MNEMONIC;
    }
    view() {
        return this.text().view();
    }
}
//# sourceMappingURL=PeritextNode.js.map