UNPKG

kui-shell

Version:

This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool

23 lines (22 loc) 855 B
/// <reference types="node" /> import * as EventEmitter from 'events'; import { ChildProcess } from 'child_process'; import { ExitHandler } from './server'; import { Channel, ReadyState } from './channel'; export declare class StdioChannelWebsocketSide extends EventEmitter implements Channel { readyState: ReadyState; private ws; private readonly wss; constructor(wss: EventEmitter); init(child: ChildProcess, pollInterval?: number): Promise<void>; close(): void; send(msg: string): void; removeEventListener(eventType: string, handler: any): void; } export declare class StdioChannelKuiSide extends EventEmitter implements Channel { readyState: ReadyState; init(onExit: ExitHandler): Promise<void>; close(): void; send(msg: string): void; removeEventListener(eventType: string, handler: any): void; }