import { IntegrationExecutionContext, IntegrationExecutionResult, IntegrationStepExecutionContext, IntegrationStepExecutionResult } from '../types'; /** * Invokes the execution handler within an error handling block that ensures any * thrown error is wrapped in an error type which provides job logging context * for reporting execution failures to users. * * @param context the execution context provided to the handler * @param executionHandler the integration execution handler */ export default function invokeExecutionHandler(context: IntegrationExecutionContext | IntegrationStepExecutionContext, executionHandler: (context: any) => Promise): Promise;