import { ExecutionError, IDeferredPromise, IExecuteResponsePromiseData, WorkflowExecuteMode, WorkflowHooks } from 'n8n-workflow';
import * as Bull from 'bull';
import { ActiveExecutions, ICredentialsOverwrite, IProcessMessageDataHook, IWorkflowExecutionDataProcess, Push } from '.';
export declare class WorkflowRunner {
    activeExecutions: ActiveExecutions.ActiveExecutions;
    credentialsOverwrites: ICredentialsOverwrite;
    push: Push.Push;
    jobQueue: Bull.Queue;
    constructor();
    processHookMessage(workflowHooks: WorkflowHooks, hookData: IProcessMessageDataHook): void;
    processError(error: ExecutionError, startedAt: Date, executionMode: WorkflowExecuteMode, executionId: string, hooks?: WorkflowHooks): Promise<void>;
    run(data: IWorkflowExecutionDataProcess, loadStaticData?: boolean, realtime?: boolean, executionId?: string, responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>): Promise<string>;
    runMainProcess(data: IWorkflowExecutionDataProcess, loadStaticData?: boolean, restartExecutionId?: string, responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>): Promise<string>;
    runBull(data: IWorkflowExecutionDataProcess, loadStaticData?: boolean, realtime?: boolean, restartExecutionId?: string, responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>): Promise<string>;
    runSubprocess(data: IWorkflowExecutionDataProcess, loadStaticData?: boolean, restartExecutionId?: string, responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>): Promise<string>;
}
