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

32 lines
833 B
TypeScript
Raw Normal View History

2023-03-18 16:24:07 +00:00
/// <reference types="node" />
2022-12-04 11:37:24 +00:00
import { ClientRPCRequest, RPCRequest } from "@lumeweb/relay-types";
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:24:07 +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