import { FeignOptions, Mapping } from "./interface"; import { HttpModuleOptions, HttpService } from "@nestjs/axios"; import { AxiosResponse } from "axios"; declare type HttpOptions = Omit; export declare class FeignService { #private; private readonly options; private readonly http; private client; private services; private logger; constructor(options: FeignOptions, http: HttpService); request(mapping: Mapping, data?: { [key: string]: unknown; }, options?: HttpOptions): Promise>; do(mapping: Mapping, data?: { [key: string]: unknown; }, options?: HttpOptions): Promise; /** * 初始化服务中心 * */ private initNacos; /** * 初始化服务 * */ private initService; /** * 获取服务节点地址 * */ private getHost; /** * 保存服务节点地址信息 * */ private setService; /** * 签名 * */ static signature(data: { [i: string]: unknown; }): string; /** * 设置prefix * */ setPrefix(prefix: string): void; } export {};