import { AbstractExchange } from '../../../libs/messaging/AbstractExchange'; import { TasksRequest } from './TasksRequest'; import { TasksResponse } from './TasksResponse'; import { TaskRunnerRegistry } from '../../../libs/tasks/TaskRunnerRegistry'; import { IMessageOptions } from '../../../libs/messaging/IMessageOptions'; import { IFileSelectOptions } from '../filesystem/IFileOptions'; import { TaskLog } from '../../../entities/TaskLog'; export declare class TasksExchange extends AbstractExchange { runnerRegistry: TaskRunnerRegistry; constructor(); /** * Get log file path to fetch file content over FileSystemHandle * * @param runnerId * @param opts */ getLogFilePath(runnerId: string, opts?: IMessageOptions & { relative?: boolean; }): Promise; /** * Get log file content * * @param runnerId * @param opts */ getLogFile(runnerId: string, opts?: IFileSelectOptions): Promise; /** * Get status information of a running task * * @param runnerId * @param opts */ getStatus(runnerId: string, opts?: IMessageOptions): Promise; /** * Get current running runners * * @param opts */ getRunners(opts?: IMessageOptions): Promise; /** * Get current running runners * * @param opts */ getRunningTasks(opts?: IMessageOptions): Promise; handleRequest(request: TasksRequest, response: TasksResponse): Promise; handleResponse(responses: TasksResponse): string | TaskLog | import("../../../libs/tasks/ITaskRunnerStatus").ITaskRunnerStatus[] | import("../../..").ITaskRunnerResult[]; }