import { printTs } from '../../json-crdt-patch/clock';
export class ExtNode {
    data;
    id;
    constructor(data) {
        this.data = data;
        this.id = data.id;
    }
    children(callback) { }
    child() {
        return this.data;
    }
    container() {
        return this.data.container();
    }
    api = undefined;
    // ---------------------------------------------------------------- Printable
    toString(tab, parentId) {
        return this.name() + (parentId ? ' ' + printTs(parentId) : '') + ' ' + this.data.toString(tab);
    }
}
//# sourceMappingURL=ExtNode.js.map