import { RpcServer } from '@theia/core/lib/common/messaging'; export const HelloBackendService = Symbol('HelloBackendService'); export const HELLO_BACKEND_PATH = '/services/helloBackend'; export interface HelloBackendService { sayHelloTo(name: string): Promise } export const HelloBackendWithClientService = Symbol('BackendWithClient'); export const HELLO_BACKEND_WITH_CLIENT_PATH = '/services/withClient'; export interface HelloBackendWithClientService extends RpcServer { greet(): Promise } export const BackendClient = Symbol('BackendClient'); export interface BackendClient { getName(): Promise; }