import { LogEvent, Run, Task, User } from '../api'; import { ILabel, ITask, ServiceOptions } from '../types'; export default class { private service; private authService; private serviceOptions; constructor(basePath: string, baseOptions: ServiceOptions); create(org: string, script: string, token: string): Promise; createByOrgID(orgID: string, script: string, token: string): Promise; get(id: string): Promise; getAll(orgID?: string): Promise; getAllByOrg(org: string): Promise; getAllByUser(user: User): Promise; update(id: string, updates: Partial): Promise; updateStatus(id: string, status: Task.StatusEnum): Promise; updateScript(id: string, script: string): Promise; delete(id: string): Promise; addLabel(taskID: string, labelID: string): Promise; removeLabel(taskID: string, labelID: string): Promise; addLabels(taskID: string, labelIDs: string[]): Promise; removeLabels(taskID: string, labelIDs: string[]): Promise; getRunsByTaskID(taskID: string): Promise; startRunByTaskID(taskID: string): Promise; getLogEventsByRunID(taskID: string, runID: string): Promise; clone(taskID: string): Promise; private cloneLabels; }