import { IHttpClient } from '@/common/http'; interface BalanceResponse { balance: number; } export declare class CachedBalanceService { private balanceService; constructor(httpClient: IHttpClient); getBalance(type?: string): Promise; refreshBalance(type?: string): Promise; warmupBalance(type?: string): Promise; clearBalanceCache(): void; getBalanceCacheStats(): import("@jolibox/common").CacheStats & { pendingRequestCount: number; }; clearExpiredCache(): void; } /** * 缓存版本的 fetchBalance 函数 */ export declare const fetchBalanceCached: (httpClient: IHttpClient, type?: string) => Promise; /** * 强制刷新余额缓存 */ export declare const refreshBalanceCache: (httpClient: IHttpClient, type?: string) => Promise; /** * 预热余额缓存 */ export declare const warmupBalanceCache: (httpClient: IHttpClient, type?: string) => Promise; export declare const clearBalanceCache: (httpClient: IHttpClient) => void; export declare const getBalanceCacheStats: (httpClient: IHttpClient) => import("@jolibox/common").CacheStats & { pendingRequestCount: number; }; export declare const getBalanceCacheService: (httpClient: IHttpClient) => CachedBalanceService; export {};