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

13 lines
562 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>;
2023-01-31 14:02:07 +00:00
registerSelf(): Promise<void>;
2023-01-31 10:07:55 +00:00
remove(name: string): Promise<boolean>;
removeAll(): Promise<void>;
exists(name: string): Promise<boolean>;
2023-01-31 13:14:50 +00:00
discover(pubkey: string | Uint8Array): Promise<Peer | boolean>;
2023-01-31 10:07:55 +00:00
}
export declare const createClient: (...args: any) => PeerDiscoveryClient;
export { Peer };
//# sourceMappingURL=index.d.ts.map