1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15/** 16 * @file 17 * @kit ArkUI 18 * @arkts 1.2 19 */ 20 21import { uint32 } from '@koalaui.runtime.common' 22import { Disposable } from '@koalaui.runtime.states.Disposable' 23import { ReadonlyTreeNode } from '@koalaui.runtime.tree.ReadonlyTreeNode' 24export declare class IncrementalNode implements Disposable, ReadonlyTreeNode { 25 _disposed: boolean 26 _child: IncrementalNode | undefined 27 _prev: IncrementalNode | undefined 28 _next: IncrementalNode | undefined 29 _parent: IncrementalNode | undefined 30 _incremental: IncrementalNode | undefined 31 protected onChildInserted: ((node: IncrementalNode) => void) | undefined 32 protected onChildRemoved: ((node: IncrementalNode) => void) | undefined 33 readonly kind: uint32 34 constructor(kind: uint32 = 1) 35 isKind(kind: uint32): boolean 36 reuse(reuseKey: string): Disposable | undefined 37 recycle(reuseKey: string, child: Disposable): boolean 38 get disposed(): boolean 39 dispose(): void 40 detach(): void 41 get parent(): IncrementalNode | undefined 42 toString(): string 43 toHierarchy(): string 44 get firstChild(): IncrementalNode | undefined 45 get nextSibling(): IncrementalNode | undefined 46 get previousSibling(): IncrementalNode | undefined 47 incrementalUpdateSkip(count: uint32): void 48 incrementalUpdateDone(parent?: IncrementalNode): void 49} 50