import ivm from 'isolated-vm';
import type { ExecutionResult } from '@mondaydotcomorg/atp-protocol';
import type { Logger } from '@mondaydotcomorg/atp-runtime';
import type { CallbackRecord } from '../execution-state/index.js';
import type { RuntimeContext } from './types.js';
export declare function handleExecutionError(error: unknown, pauseError: unknown, context: RuntimeContext, executionId: string, callbackHistory: CallbackRecord[], memoryBefore: number, executionLogger: Logger, isolate: ivm.Isolate, transformedCode?: string): ExecutionResult;
//# sourceMappingURL=execution-error-handler.d.ts.map