/**
 * 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 { EditorStore } from '../../../EditorStore.js';
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
import { type Service, ServiceExecutionMode } from '@finos/legend-graph';
import { ServiceRegistrationEnvironmentConfig } from '../../../../../application/LegendStudioApplicationConfig.js';
export declare const LATEST_PROJECT_REVISION = "Latest Project Revision";
export declare const PROJECT_SEMANTIC_VERSION_PATTERN: RegExp;
export declare const generateServiceManagementUrl: (baseUrl: string, serviceUrlPattern: string) => string;
interface ServiceVersionOption {
    label: string;
    value: string;
}
export declare class ServiceConfigState {
    readonly editorStore: EditorStore;
    readonly registrationOptions: ServiceRegistrationEnvironmentConfig[];
    readonly registrationState: ActionState;
    serviceEnv?: string | undefined;
    serviceExecutionMode?: ServiceExecutionMode | undefined;
    projectVersion?: string | undefined;
    enableModesWithVersioning: boolean;
    TEMPORARY__useStoreModel: boolean;
    TEMPORARY__useGenerateLineage: boolean;
    TEMPORARY__useGenerateOpenApi: boolean;
    constructor(editorStore: EditorStore, registrationOptions: ServiceRegistrationEnvironmentConfig[], enableModesWithVersioning: boolean);
    get options(): ServiceRegistrationEnvironmentConfig[];
    get executionModes(): ServiceExecutionMode[];
    get versionOptions(): ServiceVersionOption[] | undefined;
    setServiceEnv(val: string | undefined): void;
    setServiceExecutionMode(val: ServiceExecutionMode | undefined): void;
    setProjectVersion(val: string | undefined): void;
    setUseStoreModelWithFullInteractive(val: boolean): void;
    setUseGenerateLineage(val: boolean): void;
    setUseGenerateOpenApi(val: boolean): void;
    initialize(): void;
    updateVersion(): void;
    updateType(val: ServiceExecutionMode | undefined): void;
    updateEnv(val: string | undefined): void;
}
export declare class ServiceRegistrationState extends ServiceConfigState {
    readonly service: Service;
    activatePostRegistration: boolean;
    constructor(editorStore: EditorStore, service: Service, registrationOptions: ServiceRegistrationEnvironmentConfig[], enableModesWithVersioning: boolean);
    setActivatePostRegistration(val: boolean): void;
    registerService(): GeneratorFn<void>;
    validateServiceForRegistration(): void;
}
export {};
//# sourceMappingURL=ServiceRegistrationState.d.ts.map