/**
 * 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 GeneratorFn, ActionState } from '@finos/legend-shared';
import { type GenerationProperty, type PackageableElement, type ExternalFormatDescription, type PureModel, CompilationError, ConfigurationProperty, ExternalFormatSchema as Schema, SchemaSet } from '@finos/legend-graph';
import type { Entity } from '@finos/legend-storage';
import type { EditorStore } from '../../../EditorStore.js';
import { ElementEditorState } from '../ElementEditorState.js';
export declare enum SCHEMA_SET_TAB_TYPE {
    SCHEMAS = "SCHEMAS",
    GENERATE_MODEL = "GENERATE_MODEL"
}
export declare class SchemaSetModelGenerationState {
    readonly editorStore: EditorStore;
    readonly schemaSet: SchemaSet;
    generatingModelsState: ActionState;
    importGeneratedElementsState: ActionState;
    configurationProperties: ConfigurationProperty[];
    generationValue: string;
    targetBinding: string;
    isolatedGraph: PureModel | undefined;
    constructor(schemaSet: SchemaSet, editorStore: EditorStore, graph?: PureModel | undefined);
    setConfigurationProperty(val: ConfigurationProperty[]): void;
    get description(): ExternalFormatDescription | undefined;
    get modelGenerationProperties(): GenerationProperty[];
    get canGenerate(): boolean;
    setTargetBindingPath(val: string): void;
    getConfigValue(name: string): unknown;
    getConfig(name: string): ConfigurationProperty | undefined;
    setGenerationValue(val: string): void;
    handleTargetBindingPathChange(): void;
    updateGenerationParameters(generationProperty: GenerationProperty, newValue: unknown): void;
    addInferredConfigurationProperties(properties: ConfigurationProperty[]): void;
    generate(): GeneratorFn<boolean>;
    importGeneratedModelsIntoGraph(): GeneratorFn<void>;
    getImportEntities(): GeneratorFn<Entity[]>;
}
export declare class ImportSchemaContentState {
    editorStore: EditorStore;
    schemaSetEditorState: InnerSchemaSetEditorState | SchemaSetEditorState;
    loadingSchemaContentState: ActionState;
    files: File[] | undefined;
    importSchemaModal: boolean;
    constructor(schemaSetEditorState: InnerSchemaSetEditorState | SchemaSetEditorState, editorStore: EditorStore);
    setImportSchemaModal(val: boolean): void;
    setFiles(files: File[] | undefined): void;
    removeFile(file: File): void;
    closeModal(): void;
    importSchemas(files: File[]): GeneratorFn<void>;
}
export declare class InnerSchemaSetEditorState {
    readonly editorStore: EditorStore;
    isReadOnly: boolean;
    schemaSet: SchemaSet;
    currentSchema?: Schema | undefined;
    selectedTab: SCHEMA_SET_TAB_TYPE;
    schemaValidationError?: CompilationError;
    importSchemaContentState: ImportSchemaContentState;
    schemaSetModelGenerationState: SchemaSetModelGenerationState;
    constructor(isReadOnly: boolean, schemaSet: SchemaSet, editorStore: EditorStore, graph: PureModel);
    reset(): void;
    setCurrentSchema(value: Schema | undefined): void;
    setSelectedTab(tab: SCHEMA_SET_TAB_TYPE): void;
    setSchemaValidationerror(error: CompilationError): void;
}
export declare class SchemaSetEditorState extends ElementEditorState {
    currentSchema?: Schema | undefined;
    selectedTab: SCHEMA_SET_TAB_TYPE;
    schemaValidationError?: CompilationError;
    importSchemaContentState: ImportSchemaContentState;
    schemaSetModelGenerationState: SchemaSetModelGenerationState;
    constructor(editorStore: EditorStore, element: PackageableElement);
    get schemaSet(): SchemaSet;
    setCurrentSchema(value: Schema | undefined): void;
    setSelectedTab(tab: SCHEMA_SET_TAB_TYPE): void;
    setSchemaValidationerror(error: CompilationError): void;
    reprocess(newElement: PackageableElement, editorStore: EditorStore): ElementEditorState;
    validateSchema(currentSchema: Schema): GeneratorFn<void>;
}
//# sourceMappingURL=DSL_ExternalFormat_SchemaSetEditorState.d.ts.map