process-tunnel
Version:
12 lines (11 loc) • 355 B
TypeScript
import { Channel, MessageType } from "./interface/queued-message";
export declare class TypedWritableStream {
[x: string]: any;
private stream;
constructor(channel: Channel);
writeType(type: MessageType): this;
writeCallback(callback: string): void;
writeJSON(data: any): this;
flush(): void;
destroy(): void;
}