/**
 * Copyright (c) 2020-present, Goldman Sachs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { type Hashable } from '@finos/legend-shared';
import type { TreeNodeData, TreeData } from '@finos/legend-art';
import { type AbstractProperty, type Type, RootGraphFetchTree, PropertyGraphFetchTree } from '@finos/legend-graph';
import { type QueryBuilderExplorerTreeNodeData, QueryBuilderExplorerTreePropertyNodeData } from '../../explorer/QueryBuilderExplorerState.js';
import type { QueryBuilderState } from '../../QueryBuilderState.js';
export declare class QueryBuilderGraphFetchTreeNodeData implements TreeNodeData, Hashable {
    readonly id: string;
    readonly label: string;
    readonly tree: PropertyGraphFetchTree | RootGraphFetchTree;
    readonly parentId?: string | undefined;
    isSelected?: boolean | undefined;
    isOpen?: boolean | undefined;
    childrenIds: string[];
    constructor(id: string, label: string, parentId: string | undefined, graphFetchTreeNode: PropertyGraphFetchTree | RootGraphFetchTree);
    get type(): Type;
    get hashCode(): string;
}
export interface QueryBuilderGraphFetchTreeData extends TreeData<QueryBuilderGraphFetchTreeNodeData> {
    tree: RootGraphFetchTree;
}
export declare const generateGraphFetchTreeNodeID: (property: AbstractProperty, parentNodeId: string | undefined, subType: Type | undefined) => string;
export declare const generateRootGraphFetchTreeNodeID: (parentNodeId: string | undefined, classValue: string | undefined) => string;
/**
 * Build graph fetch tree data from an existing graph fetch tree root
 */
export declare const buildGraphFetchTreeData: (tree: RootGraphFetchTree, displayRoot?: boolean) => QueryBuilderGraphFetchTreeData;
export declare const buildPropertyGraphFetchTreeData: (propertyTree: PropertyGraphFetchTree) => QueryBuilderGraphFetchTreeData;
export declare const isGraphFetchTreeDataEmpty: (treeData: QueryBuilderGraphFetchTreeData) => boolean;
export declare const removeNodeRecursively: (treeData: QueryBuilderGraphFetchTreeData, node: QueryBuilderGraphFetchTreeNodeData) => void;
export declare const addQueryBuilderPropertyNode: (treeData: QueryBuilderGraphFetchTreeData, explorerTreeData: TreeData<QueryBuilderExplorerTreeNodeData>, node: QueryBuilderExplorerTreePropertyNodeData, queryBuilderState: QueryBuilderState) => void;
//# sourceMappingURL=QueryBuilderGraphFetchTreeUtil.d.ts.map