import type { NetworkConfig } from "./networks.js"; export declare class RpcError extends Error { code: number; data?: unknown | undefined; constructor(code: number, message: string, data?: unknown | undefined); } export declare class RpcClient { private network; constructor(network: NetworkConfig); get config(): NetworkConfig; call(method: string, params?: unknown[]): Promise; } export declare function toHex(value: number | bigint | string): string; export declare function fromHex(hex: string): bigint; export declare function formatNative(weiHex: string, decimals: number, symbol: string): string;