/** * Copyright 2019 EPAM Systems * * 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 { ISignal } from '@phosphor/signaling'; import { ICloudCredentials } from '../api/base'; import * as cloud from './cloud'; import { ModelTraining } from '../legion/ModelTraining'; import { ModelDeployment } from '../legion/ModelDeployment'; import { Connection } from '../legion/Connection'; import { ModelPackaging } from '../legion/ModelPackaging'; import { ToolchainIntegration } from '../legion/ToolchainIntegration'; import { PackagingIntegration } from '../legion/PackagingIntegration'; import * as configurationModels from './configuration'; import { IConfigurationMainResponse } from './configuration'; import { Configuration } from '../legion/Configuration'; export declare const PLUGIN_CREDENTIALS_STORE_CLUSTER = "legion.cluster:credentials-cluster"; export declare const PLUGIN_CREDENTIALS_STORE_TOKEN = "legion.cluster:credentials-token"; export declare const LEGION_OAUTH_TOKEN_COOKIE_NAME = "_legion_oauth_token"; export interface IApiCloudState { trainings: Array; deployments: Array; connections: Array; modelPackagings: Array; toolchainIntegrations: Array; packagingIntegrations: Array; configuration: Configuration; isLoading: boolean; signalLoadingStarted(): void; onDataChanged: ISignal; updateAllState(data?: cloud.ICloudAllEntitiesResponse): void; authorizationRequired: boolean; updateAuthConfiguration(data?: IConfigurationMainResponse): void; credentials: ICloudCredentials; setCredentials(credentials?: ICloudCredentials): void; authConfiguration: configurationModels.IConfigurationMainResponse; onConfigurationLoaded(config: configurationModels.IConfigurationMainResponse): void; } export declare function buildInitialCloudAPIState(): IApiCloudState;