import type { createSolanaRpc, createSolanaRpcSubscriptions, DevnetUrl, MainnetUrl, RpcFromTransport, RpcSubscriptions, RpcTransportFromClusterUrl, SolanaRpcApiFromTransport, SolanaRpcSubscriptionsApi, TestnetUrl } from "@solana/kit"; import { SendAndConfirmTransactionWithSignersFunction } from "../core/send-and-confirm-transaction-with-signers"; import type { SimulateTransactionFunction } from "../core/simulate-transaction"; /** Solana cluster moniker */ export type SolanaClusterMoniker = "devnet" | "localnet" | "mainnet" | "testnet"; export type LocalnetUrl = string & { "~cluster": "localnet"; }; export type GenericUrl = string & {}; export type ModifiedClusterUrl = DevnetUrl | GenericUrl | LocalnetUrl | MainnetUrl | TestnetUrl; export type SolanaClientUrlOrMoniker = ModifiedClusterUrl | SolanaClusterMoniker | URL; export type CreateSolanaClientArgs = { /** Configuration used to create the `rpc` client */ rpcConfig?: Parameters[1] & { port?: number; }; /** Configuration used to create the `rpcSubscriptions` client */ rpcSubscriptionsConfig?: Parameters[1] & { port?: number; }; /** Full RPC URL (for a private RPC endpoint) or the Solana moniker (for a public RPC endpoint) */ urlOrMoniker: SolanaClientUrlOrMoniker | TClusterUrl; }; export type SolanaClient = { /** Used to make RPC calls to your RPC provider */ rpc: RpcFromTransport>, RpcTransportFromClusterUrl>; /** Used to make RPC websocket calls to your RPC provider */ rpcSubscriptions: RpcSubscriptions & TClusterUrl; /** * Send and confirm a transaction to the network (including signing with available Signers). * * If the `transaction` does not already have a latest blockhash (and is not already signed), it will be automatically retrieved and applied. * * Default commitment level: `confirmed` */ sendAndConfirmTransaction: SendAndConfirmTransactionWithSignersFunction; /** * Simulate a transaction on the network */ simulateTransaction: SimulateTransactionFunction; /** Full RPC URL (for a private RPC endpoint) or the Solana moniker (for a public RPC endpoint) */ urlOrMoniker: SolanaClientUrlOrMoniker | TClusterUrl; }; //# sourceMappingURL=rpc.d.ts.map