/**
 * 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 } from '@finos/legend-shared';
import type { EditorStore } from '../../../EditorStore.js';
import { type ServiceExecutionState } from './ServiceExecutionState.js';
import { ServiceRegistrationState } from '../../../editor-state/element-editor-state/service/ServiceRegistrationState.js';
import { ElementEditorState } from '../../../editor-state/element-editor-state/ElementEditorState.js';
import { type PackageableElement, type ValueSpecification, Service, type Type } from '@finos/legend-graph';
import { ServiceTestableState } from './testable/ServiceTestableState.js';
import { User } from '@finos/legend-server-sdlc';
import { ServicePostValidationsState } from './ServicePostValidationState.js';
export declare enum SERVICE_TAB {
    GENERAL = "GENERAL",
    EXECUTION = "EXECUTION",
    TEST = "TEST",
    REGISTRATION = "REGISTRATION",
    POST_VALIDATION = "POST_VALIDATION"
}
declare enum ServiceOwnershipType {
    DEPLOYMENT_OWNERSHIP = "deploymentOwnership",
    USERLIST_OWNERSHIP = "userListOwnership"
}
export declare const resolveServiceQueryValueSpec: (service: Service, editorStore: EditorStore) => ValueSpecification | undefined;
export declare const resolveServiceQueryReturnType: (service: Service, editorStore: EditorStore) => Type | undefined;
export declare const isServiceQueryTDS: (service: Service, editorStore: EditorStore) => boolean;
export declare const MINIMUM_SERVICE_OWNERS = 2;
export declare const DeploymentOwnershipLabel = "Deployment";
export declare const UserlistOwnershipLabel = "User List";
export declare const OWNERSHIP_OPTIONS: {
    label: string;
    value: ServiceOwnershipType;
}[];
export type ServiceOwnerOption = {
    label: string;
    value: string;
};
export declare class ServiceEditorState extends ElementEditorState {
    executionState: ServiceExecutionState;
    registrationState: ServiceRegistrationState;
    testableState: ServiceTestableState;
    selectedTab: SERVICE_TAB;
    postValidationState: ServicePostValidationsState;
    constructor(editorStore: EditorStore, element: PackageableElement);
    setSelectedTab(tab: SERVICE_TAB): void;
    openToTestTab(): void;
    get selectedOwnership(): ServiceOwnerOption | undefined;
    setSelectedOwnership(o: ServiceOwnerOption): void;
    resetExecutionState(): void;
    buildExecutionState(): ServiceExecutionState;
    get service(): Service;
    searchUsers(name: string): GeneratorFn<User[]>;
    reprocess(newElement: PackageableElement, editorStore: EditorStore): ServiceEditorState;
}
export {};
//# sourceMappingURL=ServiceEditorState.d.ts.map