import { Error } from '../api/Error'; import { Base } from '../BaseEntity'; export declare type TaskStatus = 'CREATED' | 'RUNNING' | 'COMPLETED_NORMALLY' | 'COMPLETED_EXCEPTIONALLY' | 'TIMEOUT' | 'CANCELED'; /** 通用的任务定义 */ export declare class Task extends Base> { createdAt: string; updatedAt: string; startTime: string; finishTime: string; willAbortAt: string; progress: number; status: TaskStatus; err: Error; taskInfo?: T; constructor(props?: Partial>); }