///
import { Buffer } from "buffer";
import { Client } from "@lumeweb/libkernel-universal";
import { ErrTuple } from "@siaweb/libweb";
export declare class SwarmClient extends Client {
private useDefaultSwarm;
private id;
get swarm(): number | undefined;
constructor(useDefaultDht?: boolean);
connect(pubkey: string | Uint8Array): Promise;
init(): Promise;
ready(): Promise;
addRelay(pubkey: string): Promise;
removeRelay(pubkey: string): Promise;
clearRelays(): Promise;
getRelays(): Promise;
join(topic: Buffer): Promise;
}
export declare class Socket extends Client {
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;
end(): void;
private ensureEvent;
private trackEvent;
}
export declare const createClient: (...args: any) => SwarmClient;
//# sourceMappingURL=index.d.ts.map