incajs 0.0.21 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +1 -1
  2. package/dist/chunks/hooks-N7NnMPKd.js +1 -0
  3. package/dist/chunks/rendererCore-B3-0H_IR.d.ts +385 -0
  4. package/dist/chunks/rendererCore-b4ytjgR8.js +1 -0
  5. package/dist/chunks/rolldown-runtime-DK3Fl9T5.js +1 -0
  6. package/dist/chunks/window-DD6KfOr9.d.ts +691 -0
  7. package/dist/index.d.ts +12 -0
  8. package/dist/index.js +1 -3
  9. package/dist/rendererCore.d.ts +3 -0
  10. package/dist/rendererCore.js +1 -4
  11. package/dist/vue-runtime.d.ts +3 -0
  12. package/dist/vue-runtime.js +1 -2
  13. package/dist/{vue/createApp.d.mts → vue.d.ts} +6 -4
  14. package/dist/vue.js +2 -179
  15. package/package.json +6 -18
  16. package/dist/callbacks.d.mts +0 -31
  17. package/dist/chunks/handle-DdYIkUcm.js +0 -215
  18. package/dist/chunks/hooks-D1NFQN8Q.js +0 -205
  19. package/dist/chunks/rendererCore-NnTAUL80.js +0 -110
  20. package/dist/element/eventHandlers.d.mts +0 -12
  21. package/dist/element/geometry.d.mts +0 -61
  22. package/dist/element/handle.d.mts +0 -19
  23. package/dist/element/lifecycle.d.mts +0 -51
  24. package/dist/element/scroll.d.mts +0 -42
  25. package/dist/element/shadowTree.d.mts +0 -64
  26. package/dist/element/types.d.mts +0 -132
  27. package/dist/eventTarget.d.mts +0 -10
  28. package/dist/events.d.mts +0 -73
  29. package/dist/index.d.mts +0 -6
  30. package/dist/native.d.mts +0 -41
  31. package/dist/rendererCore.d.mts +0 -14
  32. package/dist/targets.d.mts +0 -1
  33. package/dist/tree.d.mts +0 -157
  34. package/dist/types.d.mts +0 -415
  35. package/dist/vue/index.d.mts +0 -2
  36. package/dist/vue/nodeOps.d.mts +0 -29
  37. package/dist/vue/patchProp.d.mts +0 -79
  38. package/dist/vue/runtime.d.mts +0 -2
  39. package/dist/window.d.mts +0 -13
@@ -1,205 +0,0 @@
1
- //#region src/native.mts
2
- function e() {
3
- return globalThis.__inca_native__;
4
- }
5
- //#endregion
6
- //#region src/element/lifecycle.mts
7
- var t = /* @__PURE__ */ new WeakSet();
8
- function n(e, n) {
9
- return t.add(e), Object.defineProperty(e, "__node_id", { value: n });
10
- }
11
- function r(e) {
12
- return typeof e == "object" && !!e && t.has(e);
13
- }
14
- var i = /* @__PURE__ */ new Map(), a = new FinalizationRegistry((e) => {
15
- i.get(e)?.deref() || i.delete(e);
16
- });
17
- function o(e) {
18
- i.set(e.__node_id, new WeakRef(e)), a.register(e, e.__node_id);
19
- }
20
- function s(e) {
21
- i.delete(e);
22
- }
23
- function c(e) {
24
- return i.get(e)?.deref();
25
- }
26
- var l = /* @__PURE__ */ new WeakSet();
27
- function u(e) {
28
- return l.has(e);
29
- }
30
- function d(e) {
31
- if (l.add(e), e.kind !== "text") {
32
- s(e.__node_id);
33
- for (let t of e.children) d(t);
34
- }
35
- }
36
- function f(e) {
37
- for (let t of e) {
38
- let e = c(t);
39
- e && d(e);
40
- }
41
- }
42
- var p = new FinalizationRegistry((t) => e().releaseNode(t));
43
- function m(e) {
44
- p.register(e, e.__node_id);
45
- }
46
- //#endregion
47
- //#region src/callbacks.mts
48
- var h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), _ = () => globalThis.__inca_callbacks__ ??= {};
49
- function v(e, t, n, r) {
50
- _()[n] = r;
51
- let i = h.get(e);
52
- i || h.set(e, i = /* @__PURE__ */ new Map()), i.set(t, n), g.set(n, {
53
- group: e,
54
- listener: t
55
- });
56
- }
57
- function y(e, t) {
58
- return h.get(e)?.get(t);
59
- }
60
- function b(e) {
61
- delete _()[e];
62
- let t = g.get(e);
63
- if (t === void 0) return;
64
- g.delete(e);
65
- let n = h.get(t.group);
66
- n?.delete(t.listener), n?.size === 0 && h.delete(t.group);
67
- }
68
- function x(e) {
69
- for (let t of e) b(t);
70
- }
71
- var S = (e, t, n) => `${e}:${t}:${n === !0}`;
72
- Object.defineProperty(globalThis, "__inca_released__", {
73
- value: (e, t) => {
74
- let n, r = !1;
75
- for (let e of t) try {
76
- x([e]);
77
- } catch (e) {
78
- r || (n = e), r = !0;
79
- }
80
- if (f(e), r) throw n;
81
- },
82
- configurable: !0
83
- });
84
- //#endregion
85
- //#region src/events.mts
86
- var C = 0;
87
- function w() {
88
- return C;
89
- }
90
- function T(e) {
91
- return (...t) => {
92
- let n = t[0]?.eventId;
93
- return typeof n == "number" && n > C && (C = n), e(...t);
94
- };
95
- }
96
- function E(t, n, r, i = {}) {
97
- if (r == null) return;
98
- let a = S(t, n, i.capture);
99
- if (y(a, r) !== void 0) return;
100
- let o = (...e) => typeof r == "function" ? r.apply(e[0]?.currentTarget, e) : r.handleEvent.apply(r, e), s = i.once ? (...e) => (D(t, n, r, i), o(...e)) : o;
101
- v(a, r, e().addEventListener(t, n, i.capture === !0, i.passive === !0), T(s));
102
- }
103
- function D(t, n, r, i = {}) {
104
- if (r == null) return;
105
- let a = y(S(t, n, i.capture), r);
106
- a !== void 0 && (e().removeEventListener(t, n, a), b(a));
107
- }
108
- function O(t, n) {
109
- return e().dispatchEvent(t, n);
110
- }
111
- function k(t) {
112
- e().click(t);
113
- }
114
- function A(t, n) {
115
- e().focusNode(t, n);
116
- }
117
- function j(t) {
118
- e().blurNode(t);
119
- }
120
- //#endregion
121
- //#region src/eventTarget.mts
122
- function M(e, t = []) {
123
- return {
124
- addEventListener(n, r, i) {
125
- let a = typeof i == "boolean" ? { capture: i } : i ?? {};
126
- E(e(), n, r, {
127
- ...a,
128
- passive: a.passive ?? t.includes(n)
129
- });
130
- },
131
- removeEventListener(t, n, r) {
132
- let i = typeof r == "boolean" ? r : r?.capture;
133
- D(e(), t, n, { capture: i });
134
- },
135
- dispatchEvent: (t) => O(e(), t)
136
- };
137
- }
138
- //#endregion
139
- //#region src/tree.mts
140
- function N() {
141
- return e().rootNodeId();
142
- }
143
- function P(t) {
144
- return e().createNode(t);
145
- }
146
- function F(t, n) {
147
- e().appendChild(t, n);
148
- }
149
- function I(t, n, r) {
150
- e().insertBefore(t, n, r);
151
- }
152
- function L(t, n) {
153
- e().removeChild(t, n);
154
- }
155
- function R(t) {
156
- x(e().destroyNode(t));
157
- }
158
- function z(t) {
159
- e().holdNode(t);
160
- }
161
- function B(t) {
162
- e().releaseNode(t);
163
- }
164
- function V(t, n, r) {
165
- e().setAttribute(t, n, r);
166
- }
167
- function H(t, n) {
168
- return e().getAttribute(t, n);
169
- }
170
- function U(t) {
171
- return e().layoutOf(t);
172
- }
173
- function W(t) {
174
- return e().scrollOf(t);
175
- }
176
- function G(t, n, r) {
177
- e().scrollNode(t, n, r);
178
- }
179
- function K(t, n, r) {
180
- e().scrollIntoViewNode(t, n, r);
181
- }
182
- function q(t, n) {
183
- e().removeAttribute(t, n);
184
- }
185
- function J(t, n, r) {
186
- e().setStyle(t, n, r);
187
- }
188
- function Y(t, n) {
189
- e().removeStyle(t, n);
190
- }
191
- function X() {
192
- return e().focusedNode();
193
- }
194
- //#endregion
195
- //#region src/window.mts
196
- var Z = /* @__PURE__ */ Object.defineProperty(M(N, ["wheel"]), Symbol.toStringTag, { value: "Window" });
197
- Object.defineProperty(globalThis, "__inca_targets__", {
198
- value: (e) => {
199
- let t = N();
200
- return e.map((e) => e === t ? Z : c(e) ?? null);
201
- },
202
- configurable: !0
203
- });
204
- //#endregion
205
- export { r as A, k as C, D, w as E, o as M, m as N, c as O, n as P, j as S, A as T, W as _, X as a, M as b, I as c, q as d, L as f, G as g, K as h, R as i, d as j, u as k, U as l, N as m, F as n, H as o, Y as p, P as r, z as s, Z as t, B as u, V as v, O as w, E as x, J as y };
@@ -1,110 +0,0 @@
1
- import { C as e, D as t, E as n, N as r, P as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, j as g, k as _, l as v, m as y, n as b, o as x, p as S, r as C, s as w, t as T, u as E, v as D, w as O, x as k, y as A } from "./hooks-D1NFQN8Q.js";
2
- import { n as j } from "./handle-DdYIkUcm.js";
3
- //#region \0rolldown/runtime.js
4
- var M = Object.defineProperty, N = (e, t) => {
5
- let n = {};
6
- for (var r in e) M(n, r, {
7
- get: e[r],
8
- enumerable: !0
9
- });
10
- return t || M(n, Symbol.toStringTag, { value: "Module" }), n;
11
- };
12
- //#endregion
13
- //#region src/element/shadowTree.mts
14
- function P(e) {
15
- let t = C(e);
16
- return j(t, "element", e);
17
- }
18
- function F(e) {
19
- let t = C("text");
20
- return D(t, "value", e), i({
21
- kind: "text",
22
- parent: null,
23
- text: e
24
- }, t);
25
- }
26
- function I() {
27
- let e = C("div");
28
- return A(e, "display", "none"), j(e, "comment");
29
- }
30
- function L(e, t) {
31
- D(e.__node_id, "value", t), e.text = t;
32
- }
33
- function R(e, t) {
34
- for (let t of e.children.splice(0)) h(t.__node_id), g(t), t.parent = null;
35
- if (!t) return;
36
- let n = F(t);
37
- b(e.__node_id, n.__node_id), n.parent = e, e.children.push(n);
38
- }
39
- function z(e) {
40
- let t = e.parent;
41
- if (!t) return;
42
- let n = t.children.indexOf(e);
43
- n !== -1 && t.children.splice(n, 1), e.parent = null;
44
- }
45
- function B(e) {
46
- e.parent && f(e.parent.__node_id, e.__node_id), z(e);
47
- }
48
- function V(e, t, n) {
49
- if (n === e && e.parent === t) return;
50
- B(e);
51
- let r = n ? t.children.indexOf(n) : -1;
52
- u(t.__node_id, e.__node_id, n && r !== -1 ? n.__node_id : null), r === -1 ? t.children.push(e) : t.children.splice(r, 0, e), e.parent = t;
53
- }
54
- function H(e) {
55
- z(e), h(e.__node_id), g(e);
56
- }
57
- function U(e) {
58
- return e.parent;
59
- }
60
- function W(e) {
61
- let t = e.parent;
62
- if (!t) return null;
63
- let n = t.children.indexOf(e);
64
- return t.children[n + 1] ?? null;
65
- }
66
- //#endregion
67
- //#region src/rendererCore.mts
68
- var G = /* @__PURE__ */ N({
69
- addEventListener: () => k,
70
- appendChild: () => b,
71
- blur: () => a,
72
- click: () => e,
73
- createCommentNode: () => I,
74
- createElementNode: () => P,
75
- createEventTarget: () => l,
76
- createIncaElement: () => j,
77
- createNode: () => C,
78
- createTextNode: () => F,
79
- destroyNode: () => h,
80
- dispatchEvent: () => O,
81
- focus: () => o,
82
- focusedNode: () => c,
83
- getAttribute: () => x,
84
- holdNode: () => w,
85
- insert: () => V,
86
- insertBefore: () => u,
87
- isDestroyed: () => _,
88
- latestEventId: () => n,
89
- layoutOf: () => v,
90
- nextSibling: () => W,
91
- parentNode: () => U,
92
- releaseNode: () => E,
93
- releaseWhenCollected: () => r,
94
- remove: () => H,
95
- removeAttribute: () => d,
96
- removeChild: () => f,
97
- removeEventListener: () => t,
98
- removeStyle: () => S,
99
- rootNodeId: () => y,
100
- scrollIntoViewNode: () => m,
101
- scrollNode: () => p,
102
- scrollOf: () => s,
103
- setAttribute: () => D,
104
- setElementText: () => R,
105
- setStyle: () => A,
106
- setText: () => L,
107
- window: () => T
108
- });
109
- //#endregion
110
- export { V as a, H as c, F as i, R as l, I as n, W as o, P as r, U as s, G as t, L as u };
@@ -1,12 +0,0 @@
1
- import { IncaEventTarget } from '../types.mts';
2
- import { EventHandlers } from './types.mts';
3
- /** The events whose handler property every element has. */
4
- export declare const HANDLER_EVENTS: readonly ["auxclick", "blur", "click", "contextmenu", "dblclick", "focus", "keydown", "keyup", "mousedown", "mouseenter", "mouseleave", "mousemove", "mouseout", "mouseover", "mouseup", "scroll", "wheel"];
5
- /**
6
- * Defines the event handler properties on `handle`. A value assigned while a property holds `null`
7
- * registers a bubble listener through `handle.addEventListener`, and `null` removes it.
8
- * @param handle - the element handle
9
- * @param ignored - whether an assignment is ignored, as it is once the node is removed
10
- * @returns `handle`, with the properties
11
- */
12
- export declare function withEventHandlers<T extends IncaEventTarget>(handle: T, ignored: () => boolean): T & EventHandlers;
@@ -1,61 +0,0 @@
1
- import { IncaElement } from './types.mts';
2
- /** `[x, y, width, height, border, scrollX, scrollY]` of a node's last drawn frame. */
3
- export type LayoutBox = readonly [number, number, number, number, number, number, number];
4
- /**
5
- * Reads the box a node was last drawn at. A destroyed node, or one with no
6
- * recorded box, yields `null`.
7
- * @param el - the node to read
8
- * @returns the box, or `null`
9
- */
10
- export declare function layoutBox(el: IncaElement): LayoutBox | null;
11
- /**
12
- * The parent a node's offsets are measured from. It is the parent when both
13
- * the node and the parent have a recorded box.
14
- * @param el - the node to query
15
- * @returns the parent, or `null`
16
- */
17
- export declare function offsetParentOf(el: IncaElement): IncaElement | null;
18
- /**
19
- * Where a node sits inside the padding edge of its offset parent, rounded to
20
- * whole pixels. A node with no offset parent is measured from the window
21
- * origin.
22
- * @param el - the node to measure
23
- * @returns `left` and `top`; both `0` when the node has no recorded box
24
- */
25
- export declare function offsetOf(el: IncaElement): {
26
- left: number;
27
- top: number;
28
- };
29
- /** The plain values of a {@link RectLike}, as `toJSON` returns them. */
30
- export interface RectValues {
31
- readonly x: number;
32
- readonly y: number;
33
- readonly width: number;
34
- readonly height: number;
35
- readonly top: number;
36
- readonly left: number;
37
- readonly right: number;
38
- readonly bottom: number;
39
- }
40
- /**
41
- * A rectangle with its position, its size and its four edges. `toJSON()` returns
42
- * the plain values.
43
- */
44
- export interface RectLike extends RectValues {
45
- toJSON(): RectValues;
46
- }
47
- /**
48
- * Builds a rect from a node's box. Values stay unrounded.
49
- * @param layout - the box from {@link LayoutBox}, or `null` for no record
50
- * @returns the rect; all zeros for `null`
51
- */
52
- export declare function rectOf(layout: LayoutBox | null): RectLike;
53
- /**
54
- * Reads a `tabindex` attribute value as the element's tab index. A value that
55
- * is missing, not a string or number, has no leading integer, or falls outside
56
- * the 32-bit signed range yields the default.
57
- * @param value - the stored `tabindex` attribute, or `null` if unset
58
- * @param kind - the element kind; `"button"` defaults to `0`, any other kind to `-1`
59
- * @returns the parsed tab index, or the default
60
- */
61
- export declare function tabIndexOf(value: string | number | boolean | null, kind: string): number;
@@ -1,19 +0,0 @@
1
- import { NodeId, TagName } from '../types.mts';
2
- import { IncaElement } from './types.mts';
3
- /**
4
- * Builds the {@link IncaElement} handle for a native node: parentless,
5
- * childless, with `id`, `focus()`, `blur()`, `click()`, `contains()`, the
6
- * listener methods of an event target, `tabIndex`, the layout members and the
7
- * event handler properties, all driven through the host.
8
- * @param id - the native node's id
9
- * @param kind - whether the node is an element or a comment stand-in
10
- * @param tag - the node's element kind, if it has one; a `button` defaults to tab index `0`
11
- * @returns the new handle
12
- */
13
- export declare function createIncaElement(id: NodeId, kind: IncaElement["kind"], tag?: TagName): IncaElement;
14
- /**
15
- * Returns the element that currently has focus. A `focus()` or `blur()` call
16
- * takes effect for this function at once.
17
- * @returns the focused element, or `null` when no element has focus
18
- */
19
- export declare function activeElement(): IncaElement | null;
@@ -1,51 +0,0 @@
1
- import { NodeId } from '../types.mts';
2
- import { IncaElement, IncaNode } from './types.mts';
3
- /**
4
- * Gives `handle` a read-only, non-enumerable `__node_id`.
5
- * @param handle - the new handle
6
- * @param id - the native node's id
7
- * @returns `handle`
8
- */
9
- export declare function withNodeId<T extends object>(handle: T, id: NodeId): T & {
10
- readonly __node_id: NodeId;
11
- };
12
- /**
13
- * Whether `value` is a node handle.
14
- * @param value - the value to check
15
- * @returns `true` for an element, a comment stand-in or a text handle
16
- */
17
- export declare function isNode(value: unknown): value is IncaNode;
18
- /**
19
- * Records `element` under its id.
20
- * @param element - the handle to record
21
- */
22
- export declare function registerElement(element: IncaElement): void;
23
- /**
24
- * Drops the record of a native node.
25
- * @param id - the native node's id
26
- */
27
- export declare function unregisterElement(id: NodeId): void;
28
- /**
29
- * Counts the recorded nodes, including those whose handle is already collected
30
- * and waits for the registry to drop it.
31
- * @returns the number of records
32
- */
33
- export declare function recordedCount(): number;
34
- /**
35
- * Looks up the live handle of a native node.
36
- * @param id - the native node's id
37
- * @returns the handle, or `undefined` when none is live
38
- */
39
- export declare function elementOf(id: NodeId): IncaElement | undefined;
40
- /**
41
- * Whether the host freed `node` with its subtree.
42
- * @param node - the handle to check
43
- * @returns `true` after {@link markDestroyed} reached `node`
44
- */
45
- export declare function isDestroyed(node: IncaNode): boolean;
46
- /**
47
- * Records that the host freed `node` and every descendant of it, and drops
48
- * their element handles from the registry.
49
- * @param node - the root of the freed subtree
50
- */
51
- export declare function markDestroyed(node: IncaNode): void;
@@ -1,42 +0,0 @@
1
- import { ScrollAlignment } from '../types.mts';
2
- import { IncaElement } from './types.mts';
3
- /** The options form of `scrollTo()` and `scrollBy()`. `behavior` is accepted and ignored. */
4
- export interface ScrollOptions {
5
- /** The horizontal offset. Omit to keep the current one. */
6
- left?: number;
7
- /** The vertical offset. Omit to keep the current one. */
8
- top?: number;
9
- /** `behavior` is ignored; every scroll applies at once. */
10
- behavior?: "auto" | "instant" | "smooth";
11
- }
12
- /** Either `(left, top)` or an options object. */
13
- export type ScrollArgs = [left?: number, top?: number] | [options?: ScrollOptions];
14
- /**
15
- * Moves a node's scroll offset. An omitted axis keeps its offset, and a
16
- * non-finite value counts as `0`. A destroyed node ignores the call.
17
- * @param el - the node to scroll
18
- * @param args - `(left, top)` or `{ left, top }`
19
- * @param relative - `true` adds the values to the current offset
20
- */
21
- export declare function scrollPosition(el: IncaElement, args: ScrollArgs, relative: boolean): void;
22
- /** The options form of `scrollIntoView()`. `behavior` is accepted and ignored. */
23
- export interface ScrollIntoViewOptions {
24
- /** The vertical alignment. Defaults to `"start"`. */
25
- block?: ScrollAlignment;
26
- /** The horizontal alignment. Defaults to `"nearest"`. */
27
- inline?: ScrollAlignment;
28
- /** `behavior` is ignored; every scroll applies at once. */
29
- behavior?: "auto" | "instant" | "smooth";
30
- }
31
- /**
32
- * Turns `scrollIntoView()`'s argument into the alignment pair. `true` or no
33
- * argument aligns to the start, `false` to the end, and an options object
34
- * takes each axis from its own key. An unknown string falls back to that
35
- * axis's default.
36
- * @param arg - the boolean or options object the caller passed
37
- * @returns the `block` and `inline` alignments to send to the host
38
- */
39
- export declare function scrollIntoViewArgs(arg?: boolean | ScrollIntoViewOptions): {
40
- block: ScrollAlignment;
41
- inline: ScrollAlignment;
42
- };
@@ -1,64 +0,0 @@
1
- import { TagName } from '../types.mts';
2
- import { IncaElement, IncaNode, IncaText } from './types.mts';
3
- /**
4
- * Allocates a new element node for `tag`.
5
- * @param tag - the node's element kind
6
- * @returns the new, parentless, childless element
7
- */
8
- export declare function createElementNode(tag: TagName): IncaElement;
9
- /**
10
- * Creates a text leaf.
11
- * @param text - the initial text content
12
- * @returns the new text leaf
13
- */
14
- export declare function createTextNode(text: string): IncaText;
15
- /**
16
- * Creates the hidden container that stands in for a comment node, such as a
17
- * placeholder for conditional content.
18
- * @returns the new hidden element
19
- */
20
- export declare function createCommentNode(): IncaElement;
21
- /**
22
- * Updates a text leaf's content in place.
23
- * @param node - the text leaf to update
24
- * @param text - the new text content
25
- */
26
- export declare function setText(node: IncaText, text: string): void;
27
- /**
28
- * Replaces all of `el`'s children with at most a single text child holding
29
- * `text`. An empty string leaves `el` childless.
30
- * @param el - the container whose children are replaced
31
- * @param text - the new text content
32
- */
33
- export declare function setElementText(el: IncaElement, text: string): void;
34
- /**
35
- * Attaches `child` to `parent`, before `anchor` or at the end when `anchor` is
36
- * omitted or `null`. If `anchor` is `child` itself and `child` is already in
37
- * `parent`, nothing changes. A `child` attached elsewhere is detached first,
38
- * so a move keeps the node alive.
39
- * @param child - the node being attached
40
- * @param parent - the new container
41
- * @param anchor - the sibling to insert before, or omitted/`null` to append at the end
42
- */
43
- export declare function insert(child: IncaNode, parent: IncaElement, anchor?: IncaNode | null): void;
44
- /**
45
- * Removes `child` for good: the native node, its whole subtree, and every
46
- * event listener registered in it.
47
- *
48
- * A caller that removes a subtree calls this on its root alone, and the host
49
- * frees the descendants with it.
50
- * @param child - the node being removed
51
- */
52
- export declare function remove(child: IncaNode): void;
53
- /**
54
- * Looks up the current parent.
55
- * @param node - the node to query
56
- * @returns the current parent, or `null` if it isn't attached
57
- */
58
- export declare function parentNode(node: IncaNode): IncaElement | null;
59
- /**
60
- * Looks up the next sibling.
61
- * @param node - the node to query
62
- * @returns the sibling immediately after `node` in its parent's children, or `null` if there is none (or `node` isn't attached)
63
- */
64
- export declare function nextSibling(node: IncaNode): IncaNode | null;