/// /// import { EventEmitter } from "events"; import { ErrTuple } from "libskynet"; import { Buffer } from "buffer"; export declare class DHT { private useDefaultDht; private id; constructor(useDefaultDht?: boolean); connect(pubkey: string): Promise; ready(): Promise; addRelay(pubkey: string): Promise; removeRelay(pubkey: string): Promise; clearRelays(): Promise; getRelays(): Promise; getRelayServers(): Promise; private create; close(): Promise; private setup; } export declare class Socket extends EventEmitter { private id; private eventUpdates; constructor(id: number); on(eventName: string, listener: (...args: any[]) => void): this; off(type: string, listener: any): this; write(message: string | Buffer): void; close(): void; private ensureEvent; private trackEvent; } //# sourceMappingURL=index.d.ts.map