kernel-rpc-client/dist/index.d.ts

20 lines
681 B
TypeScript
Raw Normal View History

2022-07-20 07:36:21 +00:00
import { ErrTuple } from "libskynet";
import type { RPCRequest } from "@lumeweb/dht-rpc-client";
export declare class RpcNetwork {
private _actionQueue;
2022-07-21 04:58:47 +00:00
private _addQueue;
private _removeQueue;
2022-07-20 07:36:21 +00:00
get ready(): Promise<ErrTuple>;
addRelay(pubkey: string): void;
removeRelay(pubkey: string): void;
clearRelays(): void;
2022-07-21 04:58:47 +00:00
private static deleteItem;
2022-07-20 07:36:21 +00:00
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