import { IntegrationJobKey, IntegrationLogger } from '../types'; /** * Delivers a job logEvent for the error and then ends the job, allowing the * J1 user to see the error and know the job did not finish its work. * * This WILL NOT manifest as a Lambda error, leaving it to the caller to throw * the provided error when that is desired. */ export default function endJobOnError(logger: IntegrationLogger, jobKey: IntegrationJobKey, accountId: string, error: Error): Promise;