import 'reflect-metadata'; import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; import { IUrlLike } from '../util/url'; import { IParamMetadata } from '../decorators/body'; import { IPropertyKey } from 'reflect-metadata-util'; import { LazyCookieJar } from 'lazy-cookies'; import { CookieJar } from 'tough-cookie'; export interface IAbstractHttpClientCache { requestConfig: AxiosRequestConfig; bool: boolean; requestConfigNew: AxiosRequestConfig; paramMetadata: IParamMetadata; router: string; pathData: Record; } export declare const methodBuilder: (handler?: import("../decorators/build").IHandleDescriptor3 | import("./decorators/build").IMethodBuilderOptions, builderOptions?: boolean | import("./decorators/build").IMethodBuilderOptions) =>

(target: any, propertyName: P, descriptor: TypedPropertyDescriptor[P]>) => void; export declare class AbstractHttpClient { $parent: this; $http: AxiosInstance; $requestConfig: AxiosRequestConfig; $url: IUrlLike; $pathData: Record; $returnValue: AxiosResponse | AxiosResponse["data"]; $responseUrl: string; $sharedPreferences: Map; $response: AxiosResponse; constructor(defaults?: AxiosRequestConfig, ...argv: any); protected _init(defaults?: AxiosRequestConfig, ...argv: any): any; get $jar(): LazyCookieJar; get $baseURL(): string; _serialize(jar?: CookieJar): CookieJar.Serialized; _jar(): LazyCookieJar; _setCookieSync(...argv: Parameters): void; /** * run this api before start calling site api * this will not auto call, need run by self */ _beforeStart(): Promise; } export declare function paramMetadataRequestConfig(_argv: { paramMetadata: IParamMetadata; requestConfig: AxiosRequestConfig; thisArgv: object; }): { /** * url before expanded */ url: string; /** * for router url */ pathData: Record; /** * merged request config */ requestConfig: AxiosRequestConfig; };