/// import { EventEmitter } from 'events'; import { Message } from './Message'; /** * Simplest possible communications channel, for testing. * * Example: * ```ts * const channel = new TestChannel() * channel.on('data', msg => { * console.log(msg) * }) * channel.write('hello, world') // logs 'hello, world' * ``` */ export declare class TestChannel extends EventEmitter { private peers; private buffer; addPeer(): void; write(id: string, msg: Message): void; }