import { AbciQueryParams, AbciQueryResponse, BlockResponse, BlockResultsResponse, CometClient, StatusResponse } from "@cosmjs/tendermint-rpc"; import { BlockResultsResponse as BlockResultsResponse$1 } from "@cosmjs/tendermint-rpc/build/comet38/responses.js"; import { Validator } from "cosmjs-types/cosmos/staking/v1beta1/staking.js"; //#region src/mocks/rpc-client.d.ts /** Configuration for mock data generation */ interface MockRpcConfig { /** Chain ID for generated blocks */ chainId: string; /** Number of transactions per block */ txPerBlock: number; /** Starting block height */ startHeight: number; /** Latest block height available */ endHeight: number; /** Which CometBFT response shape to produce (default: 0.37) */ cometVersion?: "0.37" | "0.38"; /** Size of the synthetic validator set answered by the Validators ABCI query (default: 3) */ validatorCount?: number; } /** Deterministic bech32 address from a small integer, for synthetic accounts and validators */ declare function syntheticAddress(prefix: string, seed: number): string; /** Module accounts a chain always has, with deterministic addresses (computed on first use) */ declare function mockModuleAccounts(): Record; declare class MockRpcClient { private chainId; private startHeight; private endHeight; private txPerBlock; private cometVersion; private validatorCount; constructor({ chainId, startHeight, endHeight, txPerBlock, cometVersion, validatorCount }: MockRpcConfig); /** The synthetic validator set, identical at every height */ validators(): Validator[]; /** * Answers the ABCI queries the engine and the core modules issue. Unknown paths get a * non-zero code, as a real node would answer for a query it does not serve. */ abciQuery(params: AbciQueryParams): Promise; block(height: number): Promise; status(): Promise; subscribeNewBlock(): ReturnType; disconnect(): Promise; blockResults(height: number): Promise; connect(): Promise; } /** * Factory function to create a mock RPC client */ declare function createMockRpcClient(config: MockRpcConfig): CometClient; //#endregion export { MockRpcClient, MockRpcConfig, createMockRpcClient, mockModuleAccounts, syntheticAddress }; //# sourceMappingURL=rpc-client.d.cts.map