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

32 lines
838 B
TypeScript
Raw Normal View History

2023-03-18 16:24:07 +00:00
/// <reference types="node" />
2023-03-23 16:48:48 +00:00
import { ClientRPCRequest, RPCRequest } from "@lumeweb/interface-relay";
2022-12-04 11:37:24 +00:00
import { RpcQueryOptions } from "../types.js";
import SimpleRpcQuery from "./simple.js";
import ClearCacheRpcQuery from "./clearCache.js";
import RpcNetwork from "../network.js";
import RpcQueryBase from "./base.js";
export default class RpcNetworkQueryFactory {
private _network;
constructor(network: RpcNetwork);
simple({
relay,
query,
options,
}: {
2023-03-18 16:27:49 +00:00
relay?: string | Buffer;
2022-12-04 11:37:24 +00:00
query: ClientRPCRequest;
options?: RpcQueryOptions;
}): SimpleRpcQuery;
clearCache({
relays,
query,
options,
}: {
relays: string[];
query: RPCRequest;
options?: RpcQueryOptions;
}): ClearCacheRpcQuery;
}
2023-03-18 16:11:41 +00:00
export { RpcNetwork, RpcQueryBase, SimpleRpcQuery };
2022-12-04 11:37:24 +00:00
//# sourceMappingURL=index.d.ts.map