import { MessengerUnit } from '../../../interfaces/MessengerUnit.cjs'; /** * This class is responsible for interacting with the following endpoints: * * - `{mu-url}/monitor/{process-id}` * * Methods within this class provide HTTP-like APIs. */ declare class Process { protected messenger_unit: MessengerUnit; protected process_id: string; constructor(messengerUnit: MessengerUnit, processId: string); /** * Make the following request(s): * * ```text * DELETE {mu-url}/monitor/{process-id} * ``` * * @returns The result of the request. * * @example * ```ts * const res = await new MessengerUnit() * .monitor() * .process("1557") * .delete({ * body: new TextEncoder().encode(JSON.stringify({})), * }); * * // - end of example - * ``` */ delete(options: RequestInit): Promise<{ message: string; }>; /** * Make the following request(s): * * ```text * POST {mu-url}/monitor/{process-id} * ``` * * @returns The result of the request. * * @example * ```ts * const res = await new MessengerUnit() * .monitor() * .process("1557") * .post({ * body: new TextEncoder().encode(JSON.stringify({})), * }); * * // - end of example - * ``` */ post(options: RequestInit): Promise<{ message: string; }>; } export { Process };