UNPKG

@eclipse-emfcloud/modelserver-theia

Version:
26 lines 1.61 kB
/******************************************************************************** * Copyright (c) 2022 STMicroelectronics and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0, or the MIT License which is * available at https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: EPL-2.0 OR MIT *******************************************************************************/ import { Format, ModelServerClientV2, ModelUpdateResult, PatchOrCommand, SubscriptionListener, SubscriptionOptionsV2 } from '@eclipse-emfcloud/modelserver-client'; import URI from 'urijs'; import { ModelServerFrontendClient, TheiaModelServerClientV2 } from '../common'; import { LaunchOptions } from './launch-options'; export declare class TheiaBackendModelServerClientV2 extends ModelServerClientV2 implements TheiaModelServerClientV2 { protected readonly launchOptions: LaunchOptions; protected subscriptionClient?: ModelServerFrontendClient; constructor(launchOptions?: LaunchOptions); dispose(): void; protected getBaseUrl(): URI; setClient(client: ModelServerFrontendClient | undefined): void; subscribe(modeluri: URI, listener?: SubscriptionListener, options?: SubscriptionOptionsV2): SubscriptionListener; selfSubscribe(modeluri: URI, options?: SubscriptionOptionsV2): void; edit(modeluri: URI, patchOrCommand: PatchOrCommand, format?: Format): Promise<ModelUpdateResult>; } //# sourceMappingURL=theia-model-server-client-v2.d.ts.map