UNPKG

407 BTypeScriptView Raw
1import type { Nullable } from '../core.js';
2import type { SimpleElement, SimpleNode } from './simple.js';
3
4export interface Bounds {
5 // a method to future-proof for wormholing; may not be needed ultimately
6 parentElement(): SimpleElement;
7 firstNode(): SimpleNode;
8 lastNode(): SimpleNode;
9}
10
11export interface Cursor {
12 readonly element: SimpleElement;
13 readonly nextSibling: Nullable<SimpleNode>;
14}