import { Req } from "badmfck-signal"; import { BaseService } from "../BaseService"; import { HTTPRequestVO, IError } from "../structures/Interfaces"; export interface IMicroserviceHostOptions { id: string; securityKey: string; password: string; requests: Req[]; } type TJobStatus = "processing" | "completed"; type TJob = { status: TJobStatus; result?: any | IError; expires: number; }; export declare class MicroserviceHost extends BaseService { #private; options: IMicroserviceHostOptions; jobs: Map; constructor(opt: IMicroserviceHostOptions); init(): Promise; static getMicroservice(id: string): MicroserviceHost | null; handleIncomingRequest(req: HTTPRequestVO): Promise; } export {};