import { ErrorInterface, FaultInterface } from '../interfaces/error'; import { Observable } from 'rxjs'; import { SoapServiceConfig } from '../interfaces/services-config'; import { SoapRequestData } from '../interfaces/request-data'; import { SoapResponse } from '../interfaces/response'; export interface ClientSoap { call: (method: string, params: Object, extraOptions?: {}, requestId?: string | undefined) => SoapResponse; lastRequest: () => string | undefined; rawResponse: (response: any) => any; error: (error: ErrorInterface) => string | undefined; callEndpoint(endpoint: string): any; } export declare class SoapClient { client: Observable; private wsdl; constructor(config: SoapServiceConfig); emitFinishedRequest(soapRequestData: SoapRequestData, startTime: Date): (response: any[]) => Promise; emitErrorRequest(soapRequestData: SoapRequestData, startTime: Date): (error: Error) => Promise; call(soapRequestData: SoapRequestData): Observable; callEndpoint(endpoint: string): (soapRequestData: SoapRequestData) => Observable; getError(e: Error): { stack: string | undefined; message: string; type: string; }; getStack(e: Error): string | undefined; getErrorMessage(e: Error): string; getSoapFault(e: ErrorInterface): FaultInterface | undefined; getErrorType(e: ErrorInterface): string; }