/**
 * 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 { DataProduct, LakehouseAccessPoint, type PackageableElement, type IngestDefinition, AccessPoint, AccessPointGroup, CodeCompletionResult, type Stereotype, type StereotypeReference, ModelAccessPointGroup, Class, Package, type DataProductElement, type Mapping, DataProductElementScope, RelationElement, DataProductDiagram, type AppDirNode } from '@finos/legend-graph';
import type { EditorStore } from '../../../EditorStore.js';
import { ElementEditorState } from '../ElementEditorState.js';
import { RelationElementState } from '../data/EmbeddedDataState.js';
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
import { DataProductTestableState } from './testable/DataProductTestableState.js';
import { LambdaEditorState, LineageState } from '@finos/legend-query-builder';
import { EditorInitialConfiguration } from '../ElementEditorInitialConfiguration.js';
import type { AdhocDataProductDeployResponse, LakehouseIngestionManager } from '@finos/legend-server-lakehouse';
export declare enum DATA_PRODUCT_TAB {
    HOME = "Home",
    SUPPORT = "Support",
    APG = "APG",
    OPERATIONAL = "Operational",
    TESTING = "Testing"
}
export declare enum DATA_PRODUCT_TYPE {
    INTERNAL = "Internal",
    EXTERNAL = "External"
}
export declare class AccessPointState {
    readonly uuid: string;
    state: AccessPointGroupState;
    accessPoint: AccessPoint;
    constructor(val: AccessPoint, editorState: AccessPointGroupState);
    get isRunningProcess(): boolean;
    changeGroupState(newGroup: AccessPointGroupState): void;
}
export declare class AccessPointLambdaEditorState extends LambdaEditorState {
    readonly editorStore: EditorStore;
    readonly val: LakehouseAccessPointState;
    lambdaRelationColumns: string[] | undefined;
    isUpdatingRelationColumns: boolean;
    constructor(val: LakehouseAccessPointState);
    setLambdaRelationColumns(columns: string[] | undefined): void;
    setIsUpdatingRelationColumns(value: boolean): void;
    updateLambdaRelationColumns(): GeneratorFn<void>;
    get lambdaId(): string;
    get fullLambdaString(): string;
    convertLambdaGrammarStringToObject(): GeneratorFn<void>;
    convertLambdaObjectToGrammarString(options?: {
        pretty?: boolean | undefined;
        preserveCompilationError?: boolean | undefined;
    }): GeneratorFn<void>;
    getCodeComplete(input: string): Promise<CodeCompletionResult>;
}
export declare class LakehouseAccessPointState extends AccessPointState {
    accessPoint: LakehouseAccessPoint;
    lambdaState: AccessPointLambdaEditorState;
    artifactGenerationContent: string | undefined;
    generatingArtifactState: ActionState;
    relationElementState: RelationElementState | undefined;
    showSampleValuesEditor: boolean;
    showSampleValuesModal: boolean;
    lineageState: LineageState;
    generatingLineageAction: ActionState;
    constructor(val: LakehouseAccessPoint, editorState: AccessPointGroupState);
    get hasRelationElementMismatch(): boolean;
    getRelationElementMismatchMessage(): string | undefined;
    setShowSampleValuesEditor(value: boolean): void;
    setShowSampleValuesModal(value: boolean): void;
    getRelationElementState(): RelationElementState | undefined;
    getRelationElement(): RelationElement | undefined;
    relationElementExistsinDataElementReference(): string | undefined;
    createAndaddRelationElement(): void;
    addRelationElement(newElement: RelationElement, openModal: boolean): void;
    deleteRelationElement(): void;
    get editorStore(): EditorStore;
    get isRunningProcess(): boolean;
    setArtifactContent(val: string | undefined): void;
    generateLineage(): GeneratorFn<void>;
    generateArtifact(): GeneratorFn<void>;
}
export declare class AccessPointGroupState {
    readonly state: DataProductEditorState;
    readonly uuid: string;
    value: AccessPointGroup;
    accessPointStates: AccessPointState[];
    constructor(val: AccessPointGroup, editorState: DataProductEditorState);
    get isRunningProcess(): boolean;
    get containsPublicStereotype(): StereotypeReference | undefined;
    get publicStereotype(): Stereotype | undefined;
    hasErrors(): boolean;
    deleteAccessPoint(val: AccessPointState): void;
    addAccessPoint(point: AccessPoint | AccessPointState): void;
    swapAccessPoints(sourceAccessPoint: AccessPointState, targetAccessPoint: AccessPointState): void;
    buildAccessPointState(val: AccessPoint): AccessPointState;
}
export declare class ModelAccessPointGroupState extends AccessPointGroupState {
    value: ModelAccessPointGroup;
    readonly editorState: DataProductEditorState;
    showNewModal: boolean;
    constructor(val: ModelAccessPointGroup, editorState: DataProductEditorState);
    hasErrors(): boolean;
    setMapping(mapping: Mapping): void;
    getCompatibleDiagramOptions(): {
        label: string;
        value: PackageableElement;
    }[];
    collectFeaturedClasses: (element: PackageableElement, excludedPaths: string[], elements: Set<Class>) => void;
    collectClassesFromPackage: (element: Package, excludedPaths: string[], elements: Set<Class>) => void;
    addDiagram: (option: {
        label: string;
        value: PackageableElement;
    }) => void;
    handleRemoveDiagram: (diagram: DataProductDiagram) => void;
    generateDiagramFromMapping(): GeneratorFn<void>;
    addFeaturedElement(element: DataProductElement): void;
    removeFeaturedElement(element: DataProductElementScope): void;
    excludeFeaturedElement(element: DataProductElementScope, value: boolean): void;
    isValidDataProductElement(element: PackageableElement): element is DataProductElement;
    getFeaturedElementOptions(): {
        label: string;
        value: DataProductElement;
    }[];
}
export declare const generateUrlToDeployOnOpen: (val: DataProductEditorState) => string;
export declare class DataProductEditorState extends ElementEditorState {
    deploymentState: ActionState;
    accessPointGroupStates: AccessPointGroupState[];
    isConvertingTransformLambdaObjects: boolean;
    deployOnOpen: boolean;
    deployResponse: AdhocDataProductDeployResponse | undefined;
    selectedGroupState: AccessPointGroupState | undefined;
    selectedTab: DATA_PRODUCT_TAB;
    modelledDataProduct: boolean;
    testableState: DataProductTestableState;
    constructor(editorStore: EditorStore, element: PackageableElement, config?: EditorInitialConfiguration);
    setDeployOnOpen(value: boolean): void;
    setDeployResponse(response: AdhocDataProductDeployResponse | undefined): void;
    setSelectedTab(value: DATA_PRODUCT_TAB): void;
    addGroupState(value: AccessPointGroupState): void;
    deleteGroupState(value: AccessPointGroupState): void;
    swapAccessPointGroups(sourceGroup: AccessPointGroupState, targetGroup: AccessPointGroupState): void;
    convertAccessPointsFuncObjects(): GeneratorFn<void>;
    setSelectedGroupState(val: AccessPointGroupState | undefined): void;
    addAccessPoint(id: string, description: string | undefined, accessPointGroup: AccessPointGroupState | string): void;
    createGroupAndAdd(id: string, description?: string, modeled?: boolean): AccessPointGroupState;
    deleteAccessPointGroup(val: AccessPointGroupState): void;
    createExpertise(): void;
    deploy(token: string | undefined): GeneratorFn<void>;
    clearSupportInfo(): void;
    get product(): DataProduct;
    get validForDeployment(): boolean;
    get accessPoints(): AccessPoint[];
    get ingestionManager(): LakehouseIngestionManager | undefined;
    get deployValidationMessage(): string;
    get appDirDeployment(): AppDirNode | undefined;
    get associatedIngest(): IngestDefinition | undefined;
    reprocess(newElement: PackageableElement, editorStore: EditorStore): DataProductEditorState;
}
//# sourceMappingURL=DataProductEditorState.d.ts.map