/**
 * 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 GraphManagerState, type Class, DataProduct, type V1_DataProductArtifact, ModelAccessPointGroup, NativeModelExecutionContext, type NativeModelAccess, type Mapping, type DataProductElementScope, PackageableRuntime, type LambdaFunction } from '@finos/legend-graph';
import { QueryBuilderState } from '../../QueryBuilderState.js';
import { type GenericLegendApplicationStore } from '@finos/legend-application';
import type { QueryBuilderActionConfig, QueryBuilderWorkflowState } from '../../query-workflow/QueryBuilderWorkFlowState.js';
import type { QueryBuilderConfig } from '../../../graph-manager/QueryBuilderConfig.js';
import { ActionState, type GeneratorFn } from '@finos/legend-shared';
import { DepotEntityWithOrigin, type QueryableSourceInfo } from '@finos/legend-storage';
export type DataProductOption = {
    label: string;
    value: DepotEntityWithOrigin;
};
export declare const buildDataProductOption: (value: DepotEntityWithOrigin) => DataProductOption;
export declare const buildExecOptions: (val: NativeModelExecutionContext) => {
    label: string;
    value: NativeModelExecutionContext;
};
export type ModelAccessPointGroupOption = {
    label: string;
    value: ModelAccessPointGroup;
};
export declare const buildModelAccessPointGroupOption: (value: ModelAccessPointGroup) => ModelAccessPointGroupOption;
export declare abstract class DataProductExecutionState<T> {
    readonly queryBuilderState: DataProductQueryBuilderState;
    exectionValue: T;
    constructor(executionState: T, queryBuilderState: DataProductQueryBuilderState);
    abstract get label(): string;
    abstract get mapping(): Mapping;
    abstract get featuredElements(): DataProductElementScope[] | undefined;
    get selectedOption(): {
        label: string;
        value: T;
    };
}
export declare class NativeModelDataProductExecutionState extends DataProductExecutionState<NativeModelExecutionContext> {
    nativeModelAccess: NativeModelAccess;
    constructor(executionState: NativeModelExecutionContext, queryBuilderState: DataProductQueryBuilderState);
    get label(): string;
    get mapping(): Mapping;
    get featuredElements(): DataProductElementScope[] | undefined;
}
export declare class ModelAccessPointDataProductExecutionState extends DataProductExecutionState<ModelAccessPointGroup> {
    selectedRuntime: PackageableRuntime | undefined;
    constructor(executionState: ModelAccessPointGroup, queryBuilderState: DataProductQueryBuilderState);
    changeSelectedRuntime(val: PackageableRuntime): void;
    get label(): string;
    get mapping(): Mapping;
    get featuredElements(): DataProductElementScope[] | undefined;
    get showRuntimeOptions(): boolean;
    get compatibleRuntimes(): PackageableRuntime[];
}
export declare class DataProductQueryBuilderState extends QueryBuilderState {
    readonly onClassChange?: ((val: Class) => void) | undefined;
    readonly onDataProductChange?: (val: DepotEntityWithOrigin) => Promise<void>;
    readonly onExecutionContextChange?: ((val: NativeModelExecutionContext) => void) | undefined;
    loadDataProductModelState: ActionState;
    dataProduct: DataProduct;
    dataProductArtifact: V1_DataProductArtifact | undefined;
    executionState: DataProductExecutionState<NativeModelExecutionContext | ModelAccessPointGroup>;
    entities: DepotEntityWithOrigin[] | undefined;
    prioritizeEntityFunc?: ((val: DepotEntityWithOrigin) => boolean) | undefined;
    TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
    constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflow: QueryBuilderWorkflowState, dataProduct: DataProduct, artifact: V1_DataProductArtifact | undefined, actionConfig: QueryBuilderActionConfig, executionState: NativeModelExecutionContext | ModelAccessPointGroup, prioritizeEntityFunc: ((val: DepotEntityWithOrigin) => boolean) | undefined, onDataProductChange: (val: DepotEntityWithOrigin) => Promise<void>, onExecutionContextChange?: ((val: NativeModelExecutionContext) => void) | undefined, onClassChange?: ((val: Class) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: QueryableSourceInfo | undefined);
    get isProductLinkable(): boolean;
    handleDataProductChange(val: DepotEntityWithOrigin): void;
    initWithDataProduct(dataProduct: DataProduct): void;
    copyDataProductLinkToClipBoard(): void;
    protected getElementType(): typeof DataProduct;
    setExecutionState(val: NativeModelExecutionContext | ModelAccessPointGroup): void;
    get modelAccessPointGroups(): ModelAccessPointGroup[];
    get hasModelAccessPointGroups(): boolean;
    get modelAccessPointGroupOptions(): ModelAccessPointGroupOption[];
    get activeMapping(): Mapping | undefined;
    get activeFeaturedElements(): DataProductElementScope[] | undefined;
    buildExecutionContextExpression(lambdaFunction: LambdaFunction): LambdaFunction;
    loadEntities(): GeneratorFn<void>;
    protected transformElement(element: DataProduct): DepotEntityWithOrigin;
    get dataProductOptions(): DataProductOption[];
    get selectedDataProductOption(): DataProductOption;
    get isSupported(): boolean;
    get execOptions(): {
        label: string;
        value: NativeModelExecutionContext;
    }[];
    propagateExecutionContextChange(requireReBuildingGraph?: boolean | undefined): Promise<void>;
}
//# sourceMappingURL=DataProductQueryBuilderState.d.ts.map