UNPKG

@theia/core

Version:

Theia is a cloud & desktop IDE framework implemented in TypeScript.

27 lines • 1.36 kB
import { interfaces } from 'inversify'; import { RpcProxy } from '../../common/messaging/proxy-factory'; import { AbstractChannel, Channel } from '../../common/message-rpc/channel'; import { WriteBuffer } from '../../common/message-rpc/message-buffer'; import { Emitter, Event } from '../../common/event'; import { MaybePromise } from '../../common/types'; import { ConnectionSource } from '../../browser/messaging/connection-source'; import { FrontendApplicationContribution } from '../../browser/frontend-application-contribution'; export interface ElectronIpcOptions { } export declare const ElectronMainConnectionProvider: unique symbol; /** * Connection provider between the Theia frontend and the electron-main process via IPC. */ export declare namespace ElectronIpcConnectionProvider { function createProxy<T extends object>(container: interfaces.Container, path: string, arg?: object): RpcProxy<T>; } export declare class ElectronIpcConnectionSource implements ConnectionSource, FrontendApplicationContribution { protected readonly onConnectionDidOpenEmitter: Emitter<Channel>; onConnectionDidOpen: Event<Channel>; onStart(): MaybePromise<void>; } export declare class ElectronIpcRendererChannel extends AbstractChannel { constructor(); getWriteBuffer(): WriteBuffer; } //# sourceMappingURL=electron-ipc-connection-source.d.ts.map