kernel-peer-discovery-client/dist/index.d.ts

12 lines
514 B
TypeScript
Raw Normal View History

2023-01-31 10:07:55 +00:00
import { Client } from "@lumeweb/libkernel-universal";
import type { Peer } from "@lumeweb/peer-discovery";
export declare class PeerDiscoveryClient extends Client {
register(source: string): Promise<void>;
remove(name: string): Promise<boolean>;
removeAll(): Promise<void>;
exists(name: string): Promise<boolean>;
discover(pubkey: string): Promise<Peer | boolean>;
}
export declare const createClient: (...args: any) => PeerDiscoveryClient;
export { Peer };
//# sourceMappingURL=index.d.ts.map