12 lines
514 B
TypeScript
12 lines
514 B
TypeScript
|
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
|