import { AxiosRequestConfig, ResponseType } from 'axios'; import { ContextConfigModel } from './context/service-context'; export interface IRequestOptions { url: string; params?: any; data?: any; headers?: any; timeout?: number; responseType?: ResponseType; cancelToken?: (message?: any) => void; onUploadProgress?: (e: any) => void; } export default class ServiceBase { axios: any; info: any; serviceContext: ContextConfigModel; requestTimeout: number; isSecurityData: boolean; isSecurityMethod: boolean; sm2key: string; httpMethodsList: any; constructor(serviceContext: ContextConfigModel); initAxiosConfig(serviceContext: ContextConfigModel): void; initAxiosConfigByServiceContext(serviceContext: ContextConfigModel): void; initAxiosConfigByServiceEndpoint(serviceContext: ContextConfigModel, serviceEndpoint: string): void; getRandomAlphaNum(len: any): string; getSm2Data(data: string): string; getSignature(StringToSign: string): string; checkEmpty(params: any): boolean; getJTI(): any; getEncryptedOptions(options: IRequestOptions, method: string, jti?: string): IRequestOptions; getRequestConfigWithAuth: (options: IRequestOptions) => AxiosRequestConfig; get(options: IRequestOptions): any; getWithoutToken(options: IRequestOptions): any; postWithoutToken(options: IRequestOptions): any; putWithoutToken(options: IRequestOptions): any; post(options: IRequestOptions): any; put(options: IRequestOptions): any; delete(options: IRequestOptions): any; patch(options: IRequestOptions): any; } //# sourceMappingURL=base.d.ts.map