///
///
/**
* This file defines a channel between the Electron renderer process
* and Electron main process.
*
*/
import { EventEmitter } from 'events';
import { WebContents } from 'electron';
import { Channel, ReadyState } from './channel';
interface Args {
execUUID: string;
}
export default class ElectronRendererSideChannel extends EventEmitter implements Channel {
/** is the channel alive? */
readonly isAlive = true;
readonly readyState = ReadyState.OPEN;
private ipcRenderer;
private messageChannel;
private handleMessage;
init(execUUID: string): Promise;
/** Forcibly close the channel */
close(): void;
/** Send a message over the channel */
send(msg: string | Buffer): void;
removeEventListener(eventType: string, handler: any): void;
}
export declare function initMainPty(args: Args, otherSide: WebContents): Promise;
export {};