import { Req } from "badmfck-signal"; import { BaseService } from "../BaseService"; import { HTTPRequestVO, IError, TransferPacketVO } from "../structures/Interfaces"; export declare const REQ_EXTERNAL_CALL: Req<{ id: string; requestName: string; requestData: any; }, any>; export declare const REQ_XT: Req<{ id: string; req: HTTPRequestVO; }, TransferPacketVO>; export interface IExternalServiceOptions { id: string; localSecurityToken: string; privateKey: string; publicKey: string; requests: Req[]; executors?: Req[]; url: string; password?: string; } export declare class ExternalService extends BaseService { static allInstances: ExternalService[]; options: IExternalServiceOptions; constructor(opt: IExternalServiceOptions); init(): Promise; requestExternalCall({ id, requestName, requestData }: { id: string; requestName: string; requestData: any; }): Promise; onExternalCall(req: HTTPRequestVO): Promise; decrypt(req: HTTPRequestVO): any; encrypt(req: any): { authorization: string; data: any; }; }