/**
 * 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 PackageableElement, type FunctionAnalysisInfo, type PureModel, Package, ROOT_PACKAGE_NAME } from '@finos/legend-graph';
import { ActionState } from '@finos/legend-shared';
import type { QueryBuilderState } from '../QueryBuilderState.js';
import { type TreeNodeData, type TreeData } from '@finos/legend-art';
export declare const QUERY_BUILDER_FUNCTION_DND_TYPE = "QUERY_BUILDER_FUNCTION";
export interface QueryBuilderFunctionsExplorerDragSource {
    node: QueryBuilderFunctionsExplorerTreeNodeData;
}
export declare class QueryBuilderFunctionsExplorerTreeNodeData implements TreeNodeData {
    id: string;
    label: string;
    childrenIds: string[];
    isOpen?: boolean | undefined;
    package?: PackageableElement;
    functionAnalysisInfo?: FunctionAnalysisInfo | undefined;
    constructor(id: string, label: string);
}
export declare const generateFunctionsExplorerTreeNodeDataFromFunctionAnalysisInfo: (functionAnalysisInfo: FunctionAnalysisInfo) => QueryBuilderFunctionsExplorerTreeNodeData;
export declare const getFunctionsExplorerTreeData: (roots: Package[], queryBuilderState: QueryBuilderState, rootPackageName?: ROOT_PACKAGE_NAME) => TreeData<QueryBuilderFunctionsExplorerTreeNodeData>;
export declare const getFunctionsExplorerTreeNodeChildren: (queryBuilderState: QueryBuilderState, node: QueryBuilderFunctionsExplorerTreeNodeData, data: TreeData<QueryBuilderFunctionsExplorerTreeNodeData>, rootPackageName?: ROOT_PACKAGE_NAME) => QueryBuilderFunctionsExplorerTreeNodeData[];
export declare class QueryFunctionExplorerState {
    readonly uuid: string;
    queryFunctionsState: QueryFunctionsExplorerState;
    functionAnalysisInfo: FunctionAnalysisInfo;
    constructor(queryFunctionsState: QueryFunctionsExplorerState, functionAnalysisInfo: FunctionAnalysisInfo);
}
export declare class QueryFunctionsExplorerState {
    readonly initState: ActionState;
    queryBuilderState: QueryBuilderState;
    treeData?: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined;
    dependencyTreeData?: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined;
    _functionGraph: PureModel;
    functionExplorerStates: QueryFunctionExplorerState[];
    dependencyFunctionExplorerStates: QueryFunctionExplorerState[];
    displayablePackagesSet: Set<Package>;
    dependencyDisplayablePackagesSet: Set<Package>;
    functionInfoMap?: Map<string, FunctionAnalysisInfo>;
    dependencyFunctionInfoMap?: Map<string, FunctionAnalysisInfo>;
    packagePathToFunctionInfoMap?: Map<string, FunctionAnalysisInfo[]>;
    constructor(queryBuilderState: QueryBuilderState);
    getTreeData(rootPackageName?: ROOT_PACKAGE_NAME): TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined;
    setFunctionExplorerStates(val: QueryFunctionExplorerState[]): void;
    setDependencyFunctionExplorerStates(val: QueryFunctionExplorerState[]): void;
    setFunctionInfoMap(info: Map<string, FunctionAnalysisInfo>): void;
    setDependencyFunctionInfoMap(info: Map<string, FunctionAnalysisInfo>): void;
    setPackagePathToFunctionInfoMap(map: Map<string, FunctionAnalysisInfo[]>): void;
    initializeDisplayablePackagesSet(): Promise<void>;
    initializeDependencyDisplayablePackagesSet(): Promise<void>;
    setTreeData(val: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined): void;
    setDependencyTreeData(val: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined): void;
    refreshTree(): void;
    get nonNullableTreeData(): TreeData<QueryBuilderFunctionsExplorerTreeNodeData>;
    onTreeNodeSelect: (queryBuilderState: QueryBuilderState, node: QueryBuilderFunctionsExplorerTreeNodeData, data: TreeData<QueryBuilderFunctionsExplorerTreeNodeData>, rootPackageName?: ROOT_PACKAGE_NAME) => void;
    initializeFunctionInfoMap(): void;
    initializeTreeData(): void;
}
//# sourceMappingURL=QueryFunctionsExplorerState.d.ts.map