import { ITaskRunResult } from './ITaskRunResult'; import { Counters } from '../helper/Counters'; export declare class TaskState implements ITaskRunResult { tasksId: string; name: string; nr: number; created: Date; start: Date; stop: Date; duration: number; weight: number; progress: number; total: number; done: boolean; running: boolean; incoming: any; outgoing: any; result: any; error: Error; has_error: boolean; /** * Statistical counters which can be used in task processing * * this.counters.get('item.active').inc() */ counters: Counters; calcDuration(): void; }