import type { Network, RuntimeConfig } from "./types.js"; type FetchLike = typeof fetch; /** The single-network view of the runtime config that one hub client needs. */ export interface ClientConfig { network: Network; hubAddress: string; timeoutMs: number; maxConcurrency: number; } export declare function toClientConfig(config: RuntimeConfig, network: Network): ClientConfig; export interface HubRequestOptions { retry?: boolean; } export interface WitnessesCacheInfo { hasValue: boolean; expiresAt?: string; ttlMs: number; } export declare class ObyteHttpClient { private readonly config; private readonly fetchImpl; private readonly limiter; private witnessesCache?; retryCount: number; constructor(config: ClientConfig, fetchImpl?: FetchLike); getWitnessesCacheInfo(): WitnessesCacheInfo; getLastMci(): Promise; getPeers(): Promise; getWitnesses(update?: boolean): Promise; getJoint(unit: string): Promise; getBalances(addresses: string[]): Promise; getProfileUnits(addresses: string[]): Promise; getDefinition(address: string): Promise; getDataFeed(oracles: string[], feed_name: string, ifnone?: string | number | boolean | null): Promise; getHistory(addresses: string[], witnesses?: string[], updateWitnesses?: boolean): Promise; getAttestation(attestor_address: string, field: string, value: string): Promise; getAttestations(address: string): Promise; getAaResponseChain(trigger_unit: string): Promise; getAaResponses(aaOrAas: string | string[]): Promise; getAasByBaseAas(aaOrAas: string | string[]): Promise; dryRunAa(address: string, trigger: unknown): Promise; executeGetter(address: string, getter: string, args?: unknown): Promise; getAaBalances(address: string): Promise; getAaStateVars(address: string, var_prefix?: string, var_prefix_from?: string, var_prefix_to?: string): Promise; request(path: string, body?: Record, options?: HubRequestOptions): Promise; private requestOnce; private cacheKey; } export {};