/**
 * 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 { GenericLegendApplicationStore } from '@finos/legend-application';
import { type Mapping, type Runtime, type GraphManagerState, type Service } from '@finos/legend-graph';
import { QueryBuilderState } from '../QueryBuilderState.js';
import type { QueryBuilderConfig } from '../../graph-manager/QueryBuilderConfig.js';
import type { QueryBuilderActionConfig, QueryBuilderWorkflowState } from '../query-workflow/QueryBuilderWorkFlowState.js';
export type ServiceExecutionContext = {
    key: string;
    mapping: Mapping;
    runtimeValue: Runtime;
};
export declare class ServiceQueryBuilderState extends QueryBuilderState {
    readonly service: Service;
    readonly usableServices: Service[] | undefined;
    readonly executionContexts: ServiceExecutionContext[];
    readonly onServiceChange?: ((val: Service) => void) | undefined;
    readonly onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined;
    TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
    selectedExecutionContext?: ServiceExecutionContext | undefined;
    constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflowState: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, service: Service, usableServices: Service[] | undefined, executionContextKey?: string | undefined, onServiceChange?: ((val: Service) => void) | undefined, onExecutionContextChange?: ((val: ServiceExecutionContext) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: object | undefined);
    setSelectedExecutionContext(val: ServiceExecutionContext): void;
    get sideBarClassName(): string | undefined;
    get isMappingReadOnly(): boolean;
    get isRuntimeReadOnly(): boolean;
    /**
     * Propagation after changing the execution context:
     * - The mapping will be updated to the mapping of the execution context
     * - The runtime will be updated to the default runtime of the execution context
     * - If no class is chosen, try to choose a compatible class
     * - If the chosen class is compatible with the new chosen mapping, do nothing, otherwise, try to choose a compatible class
     */
    propagateExecutionContextChange(isGraphBuildingNotRequired?: boolean): Promise<void>;
}
//# sourceMappingURL=ServiceQueryBuilderState.d.ts.map