import { HttpClientService } from '../services/http-client.service'; /** * 高级使用示例 - GitHub API客户端 */ export declare class GitHubHttpService { private httpClient; constructor(httpClient: HttpClientService); /** * 获取用户信息 - 带重试、熔断器和日志 */ getUser(username: string): Promise; /** * 搜索仓库 - 带重试 */ searchRepositories(query: string, sort?: string, order?: string): Promise; /** * 获取用户仓库 - 使用代理 */ getUserRepositories(username: string): Promise; /** * 创建仓库 - 带详细日志 */ createRepository(repoData: any, token: string): Promise; /** * 获取仓库贡献者 - 熔断器保护 */ getRepositoryContributors(owner: string, repo: string): Promise; /** * 批量获取用户信息 - 并行请求 */ getMultipleUsers(usernames: string[]): Promise; /** * 获取仓库详情 */ getRepositoryDetails(owner: string, repo: string, options?: { public?: boolean; }): Promise; } /** * 支付服务示例 - 高安全性要求 * 使用Redis锁定确保并发安全 */ export declare class PaymentHttpService { private httpClient; constructor(httpClient: HttpClientService); /** * 创建支付 - 严格的安全控制 */ createPayment(paymentData: any, apiKey: string): Promise; /** * 查询支付状态 */ getPaymentStatus(paymentId: string, apiKey: string): Promise; /** * 退款操作 - 重试机制 */ refundPayment(paymentId: string, refundData: any, apiKey: string): Promise; /** * 动态调用示例 - 手动设置调用信息 */ callExternalApi(url: string, method?: string, data?: any): Promise; private generateIdempotencyKey; }