import { ethers } from 'ethers'; declare const CLI_RPC_READ_STALL_TIMEOUT_MS = 4000; declare const CLI_RPC_BROADCAST_TIMEOUT_MS = 10000; declare function cliWithTimeout(promise: Promise, ms: number, label: string): Promise; /** * Backwards-compatible CLI aliases for the canonical classifiers in * `@origintrail-official/dkg-chain`. ~25 command modules import these names; * they delegate so the CLI write path classifies (and fails over) IDENTICALLY * to the daemon. (The chain `isRetryableRpcError` calls `enrichEvmError`, which * mutates `err.message` — benign here, since CLI errors are thrown, never * reused for control flow.) */ declare function isCliKnownTransactionError(err: unknown): boolean; declare function isCliRetryableRpcError(err: unknown): boolean; interface CliEvmRpcEndpoint { rpcUrl: string; provider: ethers.JsonRpcProvider; } interface CliEvmWriteContext { endpoints: readonly CliEvmRpcEndpoint[]; /** Resolved once with the endpoint set so direct writes cannot drop it. */ receiptTimeoutMs: number; } interface CliEvmRpcContext extends CliEvmWriteContext { readProvider: ethers.JsonRpcProvider | ethers.FallbackProvider; } declare function createCliEvmProviders(rpcUrl: string, rpcUrls?: string[], receiptTimeoutMs?: number): CliEvmRpcContext; declare function sendCliRawTransactionWithFailover(context: CliEvmWriteContext, signedTx: string, txHash: string): Promise; export { CLI_RPC_READ_STALL_TIMEOUT_MS, CLI_RPC_BROADCAST_TIMEOUT_MS, cliWithTimeout, isCliKnownTransactionError, isCliRetryableRpcError, createCliEvmProviders, sendCliRawTransactionWithFailover, }; //# sourceMappingURL=cli-rpc.d.ts.map