import { IHttpClient } from '@/common/http'; interface GemBalanceResponse { balance: number; } export declare class CachedGemBalanceService { private gemBalanceService; constructor(httpClient: IHttpClient); getGemBalance(type?: string): Promise; refreshGemBalance(type?: string): Promise; warmupGemBalance(type?: string): Promise; clearGemBalanceCache(): void; getGemBalanceCacheStats(): import("@jolibox/common").CacheStats & { pendingRequestCount: number; }; clearExpiredCache(): void; } /** * 缓存版本的 fetchGemBalance 函数 */ export declare const fetchGemBalanceCached: (httpClient: IHttpClient, type?: string) => Promise; /** * 强制刷新宝石余额缓存 */ export declare const refreshGemBalanceCache: (httpClient: IHttpClient, type?: string) => Promise; /** * 预热宝石余额缓存 */ export declare const warmupGemBalanceCache: (httpClient: IHttpClient, type?: string) => Promise; export declare const clearGemBalanceCache: (httpClient: IHttpClient) => void; export declare const getGemBalanceCacheStats: (httpClient: IHttpClient) => import("@jolibox/common").CacheStats & { pendingRequestCount: number; }; export declare const getGemBalanceCacheService: (httpClient: IHttpClient) => CachedGemBalanceService; export {};