/** * Diff the children of a virtual node * @param {import('../internal').PreactElement} parentDom The DOM element whose * children are being diffed * @param {import('../internal').VNode} newParentVNode The new virtual * node whose children should be diff'ed against oldParentVNode * @param {import('../internal').VNode} oldParentVNode The old virtual * node whose children should be diff'ed against newParentVNode * @param {object} globalContext The current context object - modified by getChildContext * @param {boolean} isSvg Whether or not this DOM node is an SVG node * @param {Array} excessDomChildren * @param {Array} commitQueue List of components * which have callbacks to invoke in commitRoot * @param {Node | Text} oldDom The current attached DOM * element any new dom elements should be placed around. Likely `null` on first * render (except when hydrating). Can be a sibling DOM element when diffing * Fragments that have siblings. In most cases, it starts out as `oldChildren[0]._dom`. * @param {boolean} isHydrating Whether or not we are in hydration */ export function diffChildren(parentDom: import('../internal').PreactElement, newParentVNode: import('../internal').VNode, oldParentVNode: import('../internal').VNode, globalContext: object, isSvg: boolean, excessDomChildren: Array, commitQueue: Array, oldDom: Node | Text, isHydrating: boolean): void; /** * Flatten and loop through the children of a virtual node * @param {import('../index').ComponentChildren} children The unflattened * children of a virtual node * @param {(vnode: import('../internal').VNode) => import('../internal').VNode} [callback] * A function to invoke for each child before it is added to the flattened list. * @param {Array} [flattened] An flat array of children to modify * @returns {import('../internal').VNode[]} */ export function toChildArray(children: import('../index').ComponentChildren, callback?: ((vnode: import('../internal').VNode) => import('../internal').VNode) | undefined, flattened?: (string | number | import("../internal").VNode)[] | undefined): import('../internal').VNode[];