import { type DslDefinition, type DslSlots, type TemplateDslDefinition, type ViewDslDefinition } from '@oinone/kunlun-dsl'; import { type Pagination, type RuntimeModelField, type RuntimeRelationField, type RuntimeView } from '@oinone/kunlun-engine'; import { ViewType } from '@oinone/kunlun-meta'; import { Condition } from '@oinone/kunlun-request'; import { type OioTreeNode } from '@oinone/kunlun-shared'; import type { SimpleTreeModelField, TreeData, TreeNodeMetadata } from '../typing'; export declare class TreeUtils { static DSL_NODES_TYPE: string; static DSL_NODE_TYPE: string; static convert(dsl: DslDefinition | undefined): TreeNodeMetadata | undefined; static convertSimpleTreeModelField(dsl: DslDefinition, model: string, target: string | SimpleTreeModelField, setter: (val: SimpleTreeModelField) => void): void; static findMetadataByKey(root: TreeNodeMetadata, key: string): TreeNodeMetadata | undefined; static hasMore(pagination: Pagination | undefined): boolean; static LOAD_MORE_NODE_CLASS_NAME: string; static SELECT_ALL_CLASS_NAME: string; static SELECT_ALL_KEY: string; static createLoadMoreNode(parent: OioTreeNode | undefined): OioTreeNode; static fillLoadMoreAction(children: OioTreeNode[]): OioTreeNode[]; static getModelFieldMetadata(simpleModelField: SimpleTreeModelField, targetModel: string): Promise; static newCondition(key: string, value: unknown): Condition; static consumerReferenceModelField(originModel: string, modelField: RuntimeRelationField, consumer: (originFields: string[], targetFields: string[], index: number, reverse: boolean) => void, consumerBefore?: () => void): Promise; static seekContentLayout(view: RuntimeView | undefined, viewType: ViewType, inline: boolean): DslDefinition | undefined; static mergeLayoutBySlotName(dslSlots: DslSlots, slotName: string, inline: boolean, view: RuntimeView | undefined): { viewType: ViewType; targetSlot: TemplateDslDefinition; viewDsl: ViewDslDefinition; viewTemplate: DslDefinition; } | undefined; }