import ErrorPolykey from '../ErrorPolykey.js'; declare class ErrorTasks extends ErrorPolykey { } declare class ErrorTaskManagerRunning extends ErrorTasks { static description: string; exitCode: 64; } declare class ErrorTaskManagerNotRunning extends ErrorTasks { static description: string; exitCode: 64; } declare class ErrorTaskManagerDestroyed extends ErrorTasks { static description: string; exitCode: 64; } /** * This is an unrecoverable error */ declare class ErrorTaskManagerScheduler extends ErrorTasks { static description: string; exitCode: 70; } /** * This is an unrecoverable error */ declare class ErrorTaskManagerQueue extends ErrorTasks { static description: string; exitCode: 70; } declare class ErrorTaskManagerProcessing extends ErrorTasks { static description: string; exitCode: 64; } declare class ErrorTask extends ErrorTasks { static description: string; exitCode: number; } declare class ErrorTaskMissing extends ErrorTask { static description: string; exitCode: 69; } declare class ErrorTaskHandlerMissing extends ErrorTask { static description: string; exitCode: 69; } declare class ErrorTaskRunning extends ErrorTask { static description: string; exitCode: 64; } /** * This is used as a signal reason when the `TaskDeadline` is reached */ declare class ErrorTaskTimeOut extends ErrorTask { static description: string; exitCode: 69; } /** * This is used as a signal reason when calling `TaskManager.stopTasks()` * If the task should be retried, then the task handler should throw `ErrorTaskRetry` */ declare class ErrorTaskStop extends ErrorTask { static description: string; exitCode: 0; } /** * If this is thrown by the task, the task will be requeued so it can be * retried, if the task rejects or resolves in any other way, the task * will be considered to have completed */ declare class ErrorTaskRetry extends ErrorTask { static description: string; exitCode: 75; } /** * This error indicates a bug */ declare class ErrorTaskRequeue extends ErrorTask { static description: string; exitCode: 70; } /** * This error indicates a bug */ declare class ErrorTaskGarbageCollection extends ErrorTask { static description: string; exitCode: 70; } export { ErrorTasks, ErrorTaskManagerRunning, ErrorTaskManagerNotRunning, ErrorTaskManagerDestroyed, ErrorTaskManagerScheduler, ErrorTaskManagerQueue, ErrorTaskManagerProcessing, ErrorTask, ErrorTaskMissing, ErrorTaskHandlerMissing, ErrorTaskRunning, ErrorTaskTimeOut, ErrorTaskStop, ErrorTaskRetry, ErrorTaskRequeue, ErrorTaskGarbageCollection, };