17 lines
601 B
TypeScript
17 lines
601 B
TypeScript
import { ErrTuple } from "libskynet";
|
|
import type { RPCRequest } from "@lumeweb/dht-rpc-client";
|
|
export declare class RpcNetwork {
|
|
private _actionQueue;
|
|
get ready(): Promise<ErrTuple>;
|
|
addRelay(pubkey: string): void;
|
|
removeRelay(pubkey: string): void;
|
|
clearRelays(): void;
|
|
query(query: string, chain: string, data?: object | any[], force?: boolean): RpcQuery;
|
|
processQueue(): Promise<void>;
|
|
}
|
|
export declare class RpcQuery {
|
|
private _promise;
|
|
constructor(network: RpcNetwork, query: RPCRequest);
|
|
get result(): Promise<any>;
|
|
}
|
|
//# sourceMappingURL=index.d.ts.map
|