import { Cluster } from '../cluster'; import { Result } from '../result'; import './interface'; export declare type commandFn = (result?: Result, processor?: Processor) => Result | Promise | void | Promise; export declare type baseProcessorMixinType = new (...a: any[]) => Processor; declare const Processor_base: any; export declare class Processor extends Processor_base { cluster: Cluster; stageName?: any; constructor(cluster: Cluster, stageName?: any); sleep: (ms: any) => Promise; commands: Array; additions: Array; waitListPromises: Array>; ended: boolean; currentCommand: commandFn; lastCommand: commandFn; lastResult: Result; waitList: (promise: Promise) => number; ensureVersion(): Promise; runWorker(): Promise; } export {};